Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects #250

Open
AugusttoDaniel opened this issue Jun 18, 2024 · 10 comments

Comments

@AugusttoDaniel
Copy link

error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
running bdist_wheel
running build
running build_py
running build_ext

  ERROR: CMake must be installed to build dlib

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects

@only-ns
Copy link

only-ns commented Jun 20, 2024

conda create -n video_retalking python=3.10 -y
conda activate video_retalking
conda install ffmpeg -y
conda install cmake==3.25.2 -y
pip3 uninstall torch torchvision torchaudio -y
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia
pip install -r requirements.txt

@AugusttoDaniel
Copy link
Author

conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia
Fica carregando infinito tem 4h ja

@AugusttoDaniel
Copy link
Author

image

@JJayasri
Copy link

JJayasri commented Jun 26, 2024

if you are using windows machine, you can checkout this github (https://github.com/Cfuhfsgh/Dlib-library-Installation) and download,unzip them & install this file in the provided path "dlib-master\dlib-19.19.0-cp38-cp38-win_amd64.whl (pip install dlib ....whl) @araya @AugusttoDaniel

@mrgab0
Copy link

mrgab0 commented Jun 27, 2024

@JJayasri in fact i already install vstudio with c++ compliling tools, clang compiler, cmake, windows 10 sdk and every time i having this issue!. some idea here? thanks in advance

@JJayasri
Copy link

JJayasri commented Jul 3, 2024

@mrgab0 I think those are not needed once you install with the github reference which I shared above,what's the issue ,can you share the screenshot?

@Shekharmeena28
Copy link

firstly you need to download the cmake from cmake website if your are working in the windows, created the environment path cmake and after that check the cmake --version, when it reflects in the command prompt cmake is made, now install dlib

@mrgab0
Copy link

mrgab0 commented Jul 16, 2024

@mrgab0 I think those are not needed once you install with the github reference which I shared above,what's the issue ,can you share the screenshot?

Oh, unfortunately I deleted everything, the module and the environment so I can't. I plan to try again if I have the same error I will share it. thank you @JJayasri

@wly123207
Copy link

Pls have you solved it

@basil-56
Copy link

basil-56 commented Sep 9, 2024

@wly123207
This error is occurring due to Cmake. First check if cmake is available on your pc(I am using ubuntu).
which cmake
If no output comes up then cmake isn't installed. So, for that run;
sudo apt-get update
sudo apt-get install cmake

Then rerun;
pip install -r requirements.txt

It worked for me! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants