[Tutor] PIP INSTALL face_recognition

George Thompson georget22 at brookings.k12.or.us
Tue Nov 16 01:52:53 EST 2021


When i use the command pip install face_recognition in the command
interface i get this,

C:\WINDOWS\system32>pip install face_recognition
Collecting face_recognition
  Using cached face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Collecting dlib>=19.7
  Using cached dlib-19.22.1.tar.gz (7.4 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: Click>=6.0 in
c:\users\ironbeagle\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages
(from face_recognition) (7.1.2)
Requirement already satisfied: Pillow in
c:\users\ironbeagle\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages
(from face_recognition) (8.1.0)
Requirement already satisfied: numpy in
c:\users\ironbeagle\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages
(from face_recognition) (1.21.4)
Requirement already satisfied: face-recognition-models>=0.3.0 in
c:\users\ironbeagle\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages
(from face_recognition) (0.3.0)
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: Command errored out with exit status 1:
     command:
'C:\Users\ironbeagle\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe'
-u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\ironbeagle\\AppData\\Local\\Temp\\pip-install-9ilr4sfv\\dlib_6e1e13a836eb4b43848b64834f8aeea9\\setup.py'"'"';
__file__='"'"'C:\\Users\\ironbeagle\\AppData\\Local\\Temp\\pip-install-9ilr4sfv\\dlib_6e1e13a836eb4b43848b64834f8aeea9\\setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(__file__) if
os.path.exists(__file__) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record
'C:\Users\ironbeagle\AppData\Local\Temp\pip-record-lg6p900f\install-record.txt'
--single-version-externally-managed --user --prefix= --compile
--install-headers
'C:\Users\ironbeagle\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\dlib'
         cwd:
C:\Users\ironbeagle\AppData\Local\Temp\pip-install-9ilr4sfv\dlib_6e1e13a836eb4b43848b64834f8aeea9\
    Complete output (8 lines):
    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

    ----------------------------------------
ERROR: Command errored out with exit status 1:
'C:\Users\ironbeagle\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe'
-u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\ironbeagle\\AppData\\Local\\Temp\\pip-install-9ilr4sfv\\dlib_6e1e13a836eb4b43848b64834f8aeea9\\setup.py'"'"';
__file__='"'"'C:\\Users\\ironbeagle\\AppData\\Local\\Temp\\pip-install-9ilr4sfv\\dlib_6e1e13a836eb4b43848b64834f8aeea9\\setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(__file__) if
os.path.exists(__file__) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record
'C:\Users\ironbeagle\AppData\Local\Temp\pip-record-lg6p900f\install-record.txt'
--single-version-externally-managed --user --prefix= --compile
--install-headers
'C:\Users\ironbeagle\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\dlib'
Check the logs for full command output.


Any help?

my program claims no module named "face_recogniiton" and no module names
"cv2"

pip install cv2 give me this,

C:\WINDOWS\system32>pip install cv2
ERROR: Could not find a version that satisfies the requirement cv2 (from
versions: none)
ERROR: No matching distribution found for cv2

Thank you!!


More information about the Tutor mailing list