-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
Problems installing face_recognition #802
Comments
-pip install cmake
|
I have the same problem. Have you solved your problem? Can you share your solution? Thanks. |
Unfortunately I have not found a solution for this problem yet. |
@WalkingCaesar09 @yinxiongchen refer this link , i have attached how i solve it, hope it is helpful to you. for windows10 user |
Post above Command I am still getting Error as below : |
@Rannvijay Did you visit the link i mentioned above? Please watch the video in the link , where you have to install all in same python version, which is python 3.6 amd |
Have you seen the solution now? I'm having the exact same issue |
same issue failed to build wheel for dlib |
si have the same issue failed to build wheel for dlib! |
@rezapci @vzyang @Pydare Follow this step please. First delete all python, dlib and face recognition.py in ur pc or current laptop before follow the steps.
This is how it will be after dlib and face recognition installed. NOTE: PLEASE UNINSTALL ALL PYTHON BEFORE YOU TRY THIS STEPS , AND ONLY PYHTON 3.6 WILL WORK WITH THIS STEPS. |
Worked like a charm. thanks! |
Thank you, This is working for me. |
I was also stuck at this problem and for me the following solution worked:
4 . Now run the command in cmd This should work in most cases |
thanks man its working in idle let me hope it works in PYcharm |
|
Thanks a lot @Raj9417 @imqureshi. I have switched to ubuntu 18.04 and everything works way easier for me. |
@Rai220 your solution worked quite well . I was also able to install dlib in a virtual environment. Thanks a lot. |
Finally it works, I've been searching for an answer for weeks, thank you! |
This worked fine without any mind boggling with C++ and Visual Studio Installation. |
|
Bro,finally how u solved the problem...........I too got the same problem....Please help me? |
Hey, did you find the solution. |
Could someone please give a method for Python 3.8? Thanks |
This worked for me on windows 10 pro FROM python:3.6.8 Copy application requirements fileCOPY requirements.txt /app #Install wheel #Install dlib #Install face_recognition #Install application requirements CMD ["python","app.py"] |
can you say s.th that it can help!!!!!!!!???? ERROR: Command errored out with exit status 1:
ERROR: Command errored out with exit status 1: 'c:\users\lenovo\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\LENOVO\AppData\Local\Temp\pip-install-obmo8_mo\dlib_2e1630899d11474ab6caab0e9f8c785b\setup.py'"'"'; file='"'"'C:\Users\LENOVO\AppData\Local\Temp\pip-install-obmo8_mo\dlib_2e1630899d11474ab6caab0e9f8c785b\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\LENOVO\AppData\Local\Temp\pip-record-f67u8ldl\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\lenovo\appdata\local\programs\python\python37\Include\dlib' Check the logs for full command output. |
Solve the same problem in this link: https://gist.github.com/ageitgey/629d75c1baac34dfa5ca2a1928a7aeaf |
Description
I am simply trying to install face recognition for a project of mine and keep receiving this error.
What I Did
C:\Windows\system32>pip install face_recognition
Collecting face_recognition
Using cached https://files.pythonhosted.org/packages/3f/ed/ad9a28042f373d4633fc8b49109b623597d6f193d3bbbef7780a5ee8eef2/face_recognition-1.2.3-py2.py3-none-any.whl
Collecting face-recognition-models>=0.3.0 (from face_recognition)
Requirement already satisfied: Click>=6.0 in e:\new folder (2)\lib\site-packages (from face_recognition) (7.0)
Collecting dlib>=19.7 (from face_recognition)
Using cached https://files.pythonhosted.org/packages/05/57/e8a8caa3c89a27f80bc78da39c423e2553f482a3705adc619176a3a24b36/dlib-19.17.0.tar.gz
Requirement already satisfied: Pillow in e:\new folder (2)\lib\site-packages (from face_recognition) (6.0.0)
Requirement already satisfied: numpy in e:\new folder (2)\lib\site-packages (from face_recognition) (1.16.2)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) ... error
Complete output from command "e:\new folder (2)\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\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 C:\Users\walki\AppData\Local\Temp\pip-wheel-s06t1j5i --python-tag cp37:
running bdist_wheel
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\build\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=e:\new folder (2)\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\build\lib.win-amd64-3.7 -A x64'
-- Building for: NMake Makefiles
CMake Error in CMakeLists.txt:
Generator
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/walki/AppData/Local/Temp/pip-install-76vhd65m/dlib/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\setup.py", line 261, in
'Topic :: Software Development',
File "e:\new folder (2)\lib\site-packages\setuptools_init_.py", line 145, in setup
return distutils.core.setup(**attrs)
File "e:\new folder (2)\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "e:\new folder (2)\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "e:\new folder (2)\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "e:\new folder (2)\lib\site-packages\wheel\bdist_wheel.py", line 192, in run
self.run_command('build')
File "e:\new folder (2)\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "e:\new folder (2)\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "e:\new folder (2)\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "e:\new folder (2)\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "e:\new folder (2)\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\setup.py", line 135, in run
self.build_extension(ext)
File "C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\setup.py", line 172, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "e:\new folder (2)\lib\subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\tools\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\build\lib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=e:\new folder (2)\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\build\lib.win-amd64-3.7', '-A', 'x64']' returned non-zero exit status 1.
Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: face-recognition-models, dlib, face-recognition
Running setup.py install for dlib ... error
Complete output from command "e:\new folder (2)\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\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 C:\Users\walki\AppData\Local\Temp\pip-record-6482f4uw\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
Building extension for Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\build\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=e:\new folder (2)\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\build\lib.win-amd64-3.7 -A x64'
-- Building for: NMake Makefiles
CMake Error in CMakeLists.txt:
Generator
Command ""e:\new folder (2)\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\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 C:\Users\walki\AppData\Local\Temp\pip-record-6482f4uw\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\walki\AppData\Local\Temp\pip-install-76vhd65m\dlib\
The text was updated successfully, but these errors were encountered: