face_recognition icon indicating copy to clipboard operation
face_recognition copied to clipboard

dlib can't be downloaded.

Open rajraghuwanshi007 opened this issue 3 years ago • 2 comments

  • 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> 

rajraghuwanshi007 avatar Aug 16 '22 00:08 rajraghuwanshi007

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

bryanseah234 avatar Aug 20 '22 00:08 bryanseah234

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

bruh 4.2 gb demnnnn

IndrajeethY avatar Aug 20 '22 16:08 IndrajeethY

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

harvestingmoon avatar Mar 01 '23 03:03 harvestingmoon