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 can't be downloaded. #1439

Open
rajraghuwanshi007 opened this issue Aug 16, 2022 · 3 comments
Open

dlib can't be downloaded. #1439

rajraghuwanshi007 opened this issue Aug 16, 2022 · 3 comments

Comments

@rajraghuwanshi007
Copy link

  • face_recognition version:
  • Python version:3.10.1
  • Operating System: windows 11

Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
IMPORTANT: If your issue is related to a specific picture, include it so others can reproduce the issue.
I was trying to install face_recognition using pip install.

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
 pip install face-recognition
Collecting face-recognition
  Using cached face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: face-recognition-models>=0.3.0 in c:\users\rajra\appdata\local\programs\python\python310\lib\site-packages (from face-recognition) (0.3.0)
Collecting dlib>=19.7
  Using cached dlib-19.24.0.tar.gz (3.2 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\rajra\appdata\local\programs\python\python310\lib\site-packages (from face-recognition) (1.22.2)
Requirement already satisfied: Pillow in c:\users\rajra\appdata\local\programs\python\python310\lib\site-packages (from face-recognition) (9.2.0)
Requirement already satisfied: Click>=6.0 in c:\users\rajra\appdata\local\programs\python\python310\lib\site-packages (from face-recognition) (8.1.3)
Requirement already satisfied: colorama in c:\users\rajra\appdata\local\programs\python\python310\lib\site-packages (from Click>=6.0->face-recognition) (0.4.4)
Using legacy 'setup.py install' for dlib, since package 'wheel' is not installed.
Installing collected packages: dlib, face-recognition
  Running setup.py install for dlib ... error
  error: subprocess-exited-with-error

  × Running setup.py install for dlib did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      running install
      running build
      running build_py
      package init file 'tools\python\dlib\__init__.py' not found (or not a regular file)
      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: legacy-install-failure

× Encountered error while trying to install package.
╰─> dlib

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

[notice] A new release of pip available: 22.2 -> 22.2.2
[notice] To update, run: python.exe -m pip install --upgrade pip
PS C:\Users\rajra\Downloads\source-code-face-recognition\source code> 

@bryanseah234
Copy link

Go install visual studio c++, worked for me afterwards although it took 4.2gb

@TAMILVIP007
Copy link

Go install visual studio c++, worked for me afterwards although it took 4.2gb

bruh 4.2 gb demnnnn

@harvestingmoon
Copy link

happened to me too, just download video C++ with dev set for C++ framework

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

4 participants