Python Forum
can't able to install face_recogniton using pip
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can't able to install face_recogniton using pip
#1
Hello Guys, I am working on a project, I need to use face_recognition module...
But while I try to install it using pip ..I am getting an error...
PLEASE HELP MY OUT FROM THIS PROBLEM...

THIS IS MY INPUT...
pip install face_recognition

THIS IS MY OUTPUT...
Error:
Collecting face_recognition Using cached https://files.pythonhosted.org/packages/28/10/f153bbbc218fc169768aa1c02f2e9178e9241e4af8da56289bdca2c0c217/face_recognition-1.2.2-py2.py3-none-any.whl Requirement already satisfied: Pillow in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from face_recognition) (5.0.0) Collecting dlib>=19.7 (from face_recognition) Using cached https://files.pythonhosted.org/packages/54/ff/5781a11bdc0d1c90a813f3f66d460abf628e5114856a842d18d43f709a7a/dlib-19.10.0.tar.gz Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from face_recognition) (1.14.0) Collecting face-recognition-models>=0.3.0 (from face_recognition) Collecting Click>=6.0 (from face_recognition) Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl Building wheels for collected packages: dlib Running setup.py bdist_wheel for dlib ... error Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/ph/1wrns4p94cb71r0zmrk_txjm0000gp/T/pip-install-Z5M5qR/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/ph/1wrns4p94cb71r0zmrk_txjm0000gp/T/pip-wheel-S0fmsL --python-tag cp27: running bdist_wheel running build running build_py package init file 'dlib/__init__.py' not found (or not a regular file) running build_ext Invoking CMake setup: 'cmake /private/var/folders/ph/1wrns4p94cb71r0zmrk_txjm0000gp/T/pip-install-Z5M5qR/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/ph/1wrns4p94cb71r0zmrk_txjm0000gp/T/pip-install-Z5M5qR/dlib/build/lib.macosx-10.6-intel-2.7 -DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -DCMAKE_BUILD_TYPE=Release' error: [Errno 2] No such file or directory ---------------------------------------- Failed building wheel for dlib Running setup.py clean for dlib Failed to build dlib Installing collected packages: dlib, face-recognition-models, Click, face-recognition Running setup.py install for dlib ... error Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/ph/1wrns4p94cb71r0zmrk_txjm0000gp/T/pip-install-Z5M5qR/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/ph/1wrns4p94cb71r0zmrk_txjm0000gp/T/pip-record-K7AATi/install-record.txt --single-version-externally-managed --compile: running install running build running build_py package init file 'dlib/__init__.py' not found (or not a regular file) running build_ext Invoking CMake setup: 'cmake /private/var/folders/ph/1wrns4p94cb71r0zmrk_txjm0000gp/T/pip-install-Z5M5qR/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/ph/1wrns4p94cb71r0zmrk_txjm0000gp/T/pip-install-Z5M5qR/dlib/build/lib.macosx-10.6-intel-2.7 -DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -DCMAKE_BUILD_TYPE=Release' error: [Errno 2] No such file or directory ---------------------------------------- Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/ph/1wrns4p94cb71r0zmrk_txjm0000gp/T/pip-install-Z5M5qR/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/ph/1wrns4p94cb71r0zmrk_txjm0000gp/T/pip-record-K7AATi/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/ph/1wrns4p94cb71r0zmrk_txjm0000gp/T/pip-install-Z5M5qR/dlib/ ---------------------------------------------------------------------------------------------------------------
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020