-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Bug]: Cannot build wheel v19.24.4 #2943
Comments
cmake isn't really installed right. Try |
@davisking Unfortunately I already tried that :( Running |
Are you sure you're using the system-wide CMake instead of the one installed by pip? |
@arrufat you're right, I was using pip's one I guess, as you can see from the error traceback it takes it from virtualenv... however, I tried to uninstall it and the error is the same, this time taking the system-wide cmake (in
I checked, and the version installed in venv (via pip) was 3.29.0.1 and the system-wide is 3.25.2. Do you know how to force some cmake version during Also, I tried to re-install dlib==19.24.2 forcing it the build ( |
@arrufat that's what I tried, in fact the command in error comes from |
I would try the following things
FYI, I am using CMake 3.29.1 and it works fine. |
I am experiencing the same issue as well. P.S. Trying it in dockerized env. |
I still haven't solved it in my env, but I must say that it's probably a cmake installation issue as @arrufat and @davisking suggested. In fact, I tried to install everything from scratch in an Ubuntu docker image and version 19.24.4 is build and installed just fine |
I tried again and again about 19.24.4 but failed, then follow your advice, replace it with 19.24.2 .It's working now. |
I am using linux system, and now the cmake version is okay (>3.8) However, I can not "pip install dlib" It showed the following error " cmd_obj.run() note: This error originates from a subprocess, and is likely not a problem with pip. I think the same with this bug --cannot build wheels for dlib. |
pip install cmake==3.25.2
|
I am using linux system: |
Try getting cmake from cmake.org and installing it with their official installer. The versions of cmake available in pip are often broken. I would really only use the official cmake. |
Collecting dlib × Building wheel for dlib (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. help me, i have this problem when downloading dlib |
This worked for me (CentOS 8)
|
but i use win 11 |
Cmake isn't installed correctly. You should get cmake from cmake.org. That will work. There are lot of other places that repackage it into semi-broken cmake installers. You probably have one of those. |
This worked out for me while developing for Python in Docker container. Manually changed the version of the package. |
win11 `pip install cmake==3.25.2 pip install dlib==19.24.2` (CentOS 8) `yum install python3-devel yum groupinstall 'Development Tools' pip install dlib` |
Dear ALL, |
SOLVED WITH DOCKER. |
I have this error when installing × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
Warning: this issue has been inactive for 35 days and will be automatically closed on 2024-09-12 if there is no further activity. If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search. |
Warning: this issue has been inactive for 43 days and will be automatically closed on 2024-09-12 if there is no further activity. If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search. |
Notice: this issue has been closed because it has been inactive for 45 days. You may reopen this issue if it has been closed in error. |
What Operating System(s) are you seeing this problem on?
Linux (x86-64)
dlib version
19.24.4
Python version
3.10.12
Compiler
Cmake 3.29.0
Expected Behavior
It should install dlib at its latest version with pip installing syntax:
Current Behavior
Steps to Reproduce
Anything else?
(cmake is installed correctly and it successfully install dlib==19.24.2)
The text was updated successfully, but these errors were encountered: