[Tutor] PIP INSTALL face_recognition

Alan Gauld alan.gauld at yahoo.co.uk
Tue Nov 16 05:49:56 EST 2021


On 16/11/2021 06:52, George Thompson wrote:
> When i use the command pip install face_recognition in the command
> interface i get this,

> 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


This seems to be the first error.
Do you have cmake installed?

Although that is likely to just trigger more errors because...
this may imply it is going to try to build the package from C
source, do you have a suitable C build environment available?

But I'm no expert in pip and the install tools. I don't use
many 3rd party modules.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list