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

dlib #1559

Open
caigang2501 opened this issue Mar 14, 2024 · 2 comments
Open

dlib #1559

caigang2501 opened this issue Mar 14, 2024 · 2 comments

Comments

@caigang2501
Copy link

  • face_recognition version:
  • Python version:
  • Operating System:

Description

run the program,and tell me can't find dlib.
so,i run the commond pip install dlib,but installed failed

What I Did

pip install dlib

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Building wheels for collected packages: dlib
Building wheel for dlib (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for dlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [78 lines of output]
running bdist_wheel
running build
running build_ext
:125: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.

@KiLJ4EdeN
Copy link
Contributor

  • face_recognition version:

    • Python version:

    • Operating System:

Description

run the program,and tell me can't find dlib. so,i run the commond pip install dlib,but installed failed

What I Did

pip install dlib

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Building wheels for collected packages: dlib Building wheel for dlib (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for dlib (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [78 lines of output] running bdist_wheel running build running build_ext :125: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.

Check and see if you have a cxx compiler and cmake on your computer, since dlib must be compiled.

@Shabeena-18
Copy link

PS C:\Users\SHAIK SHABEENA> pip install cmake
Requirement already satisfied: cmake in c:\users\shaik shabeena\appdata\local\programs\python\python311\lib\site-packages (3.29.2)
PS C:\Users\SHAIK SHABEENA>
PS C:\Users\SHAIK SHABEENA> pip install dlib
Collecting dlib
Using cached dlib-19.24.4.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: dlib
Building wheel for dlib (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for dlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
running bdist_wheel
running build
running build_ext
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\SHAIK SHABEENA\AppData\Local\Programs\Python\Python311\Scripts\cmake.exe_main
.py", line 4, in
ModuleNotFoundError: No module named 'cmake'

  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
Failed to build dlib
ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects
PS C:\Users\SHAIK SHABEENA>

i am getting this error how to fix this could you please help me in this regard its very urgent

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

3 participants