This is my current error report.
Nom du système d’exploitation: Microsoft Windows 10 Famille
Version du système: 10.0.19041 N/A version 19041
Python 3.9.1
pip 21.0.1
D:\Polaris>pip install face_recognition
Collecting face_recognition
Using cached face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: Click>=6.0 in c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages (from face_recognition) (7.1.2)
Collecting dlib>=19.7
Using cached dlib-19.22.0.tar.gz (7.4 MB)
Requirement already satisfied: face-recognition-models>=0.3.0 in c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages (from face_recognition) (0.3.0)
Requirement already satisfied: Pillow in c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages (from face_recognition) (8.1.2)
Requirement already satisfied: numpy in c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages (from face_recognition) (1.20.2)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\ludndev\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\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\ludndev\AppData\Local\Temp\pip-wheel-h3ipmluc'
cwd: C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\
Complete output (73 lines):
running bdist_wheel
running build
running build_py
package init file 'tools\python\dlib\__init__.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\build\lib.win-amd64-3.9 -DPYTHON_EXECUTABLE=c:\users\ludndev\appdata\local\programs\python\python39\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\build\lib.win-amd64-3.9 -A x64'
-- Building for: Visual Studio 12 2013
-- The C compiler identification is MSVC 18.0.21005.1
-- The CXX compiler identification is MSVC 18.0.21005.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Users/ludndev/AppData/Local/Programs/Python/Python39/python.exe (found version "3.9.1")
-- Found PythonLibs: C:/Users/ludndev/AppData/Local/Programs/Python/Python39/libs/Python39.lib
-- pybind11 v2.2.4
-- Using CMake version: 3.18.4
-- Compiling dlib version: 19.22.0
CMake Error at C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/set_compiler_specific_options.cmake:31 (message):
C++11 is required to use dlib, but the version of Visual Studio you are
using is too old and doesn't support C++11. You need Visual Studio 2015 or
newer.
Call Stack (most recent call first):
C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/test_for_sse4/CMakeLists.txt:8 (include)
CMake Error at C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/check_if_sse4_instructions_executable_on_host.cmake:13 (try_compile):
Failed to configure test project build system.
Call Stack (most recent call first):
C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/set_compiler_specific_options.cmake:13 (include)
C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/CMakeLists.txt:33 (include)
-- Configuring incomplete, errors occurred!
See also "C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/build/temp.win-amd64-3.9/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 222, in <module>
setup(
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages\setuptools\__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 134, in run
self.build_extension(ext)
File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 171, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\build\\lib.win-amd64-3.9', '-DPYTHON_EXECUTABLE=c:\\users\\ludndev\\appdata\\local\\programs\\python\\python39\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\build\\lib.win-amd64-3.9', '-A', 'x64']' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib, face-recognition
Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\ludndev\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\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\ludndev\AppData\Local\Temp\pip-record-gn9mlv3w\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ludndev\appdata\local\programs\python\python39\Include\dlib'
cwd: C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\
Complete output (75 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
Building extension for Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\build\lib.win-amd64-3.9 -DPYTHON_EXECUTABLE=c:\users\ludndev\appdata\local\programs\python\python39\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\build\lib.win-amd64-3.9 -A x64'
-- Building for: Visual Studio 12 2013
-- The C compiler identification is MSVC 18.0.21005.1
-- The CXX compiler identification is MSVC 18.0.21005.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Users/ludndev/AppData/Local/Programs/Python/Python39/python.exe (found version "3.9.1")
-- Found PythonLibs: C:/Users/ludndev/AppData/Local/Programs/Python/Python39/libs/Python39.lib
-- pybind11 v2.2.4
-- Using CMake version: 3.18.4
-- Compiling dlib version: 19.22.0
CMake Error at C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/set_compiler_specific_options.cmake:31 (message):
C++11 is required to use dlib, but the version of Visual Studio you are
using is too old and doesn't support C++11. You need Visual Studio 2015 or
newer.
Call Stack (most recent call first):
C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/test_for_sse4/CMakeLists.txt:8 (include)
CMake Error at C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/check_if_sse4_instructions_executable_on_host.cmake:13 (try_compile):
Failed to configure test project build system.
Call Stack (most recent call first):
C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/cmake_utils/set_compiler_specific_options.cmake:13 (include)
C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/dlib/CMakeLists.txt:33 (include)
-- Configuring incomplete, errors occurred!
See also "C:/Users/ludndev/AppData/Local/Temp/pip-install-ph5_opqm/dlib_7eba953fdff44f02b702d0fc7b5b66b5/build/temp.win-amd64-3.9/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 222, in <module>
setup(
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages\setuptools\__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\command\install.py", line 546, in run
self.run_command('build')
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 134, in run
self.build_extension(ext)
File "C:\Users\ludndev\AppData\Local\Temp\pip-install-ph5_opqm\dlib_7eba953fdff44f02b702d0fc7b5b66b5\setup.py", line 171, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "c:\users\ludndev\appdata\local\programs\python\python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\build\\lib.win-amd64-3.9', '-DPYTHON_EXECUTABLE=c:\\users\\ludndev\\appdata\\local\\programs\\python\\python39\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\build\\lib.win-amd64-3.9', '-A', 'x64']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\ludndev\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\ludndev\\AppData\\Local\\Temp\\pip-install-ph5_opqm\\dlib_7eba953fdff44f02b702d0fc7b5b66b5\\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\ludndev\AppData\Local\Temp\pip-record-gn9mlv3w\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ludndev\appdata\local\programs\python\python39\Include\dlib' Check the logs for full command output.
D:\Polaris>