Microsoft Windows [版本 10.0.18362.836]
© 2019 Microsoft Corporation。保留所有权利。

C:\Users\MaV15>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting opencv-python
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/df/9e/56d8b98652ecac8c8f9e59b7f00d5d99a9fa86661adcf324b8dc73351a6b/opencv_python-4.2.0.34-cp38-cp38-win_amd64.whl (33.1 MB)
|████████████████████████████████| 33.1 MB 6.4 MB/s
Collecting numpy>=1.17.3
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/22/cb/21a148329591931d8764e7ef49cb19586dd5b5e002a184988cb5ec1ccba9/numpy-1.18.5-cp38-cp38-win_amd64.whl (12.8 MB)
|████████████████████████████████| 12.8 MB 930 kB/s
Installing collected packages: numpy, opencv-python
Successfully installed numpy-1.18.5 opencv-python-4.2.0.34

C:\Users\MaV15>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple face_recognition
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting face_recognition
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1e/95/f6c9330f54ab07bfa032bf3715c12455a381083125d8880c43cbe76bb3d0/face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Collecting Click>=6.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82 kB)
|████████████████████████████████| 82 kB 156 kB/s
Requirement already satisfied: numpy in g:\python\lib\site-packages (from face_recognition) (1.18.5)
Requirement already satisfied: Pillow in g:\python\lib\site-packages (from face_recognition) (7.1.2)
Collecting face-recognition-models>=0.3.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/cf/3b/4fd8c534f6c0d1b80ce0973d01331525538045084c73c153ee6df20224cf/face_recognition_models-0.3.0.tar.gz (100.1 MB)
|████████████████████████████████| 100.1 MB 18 kB/s
Collecting dlib>=19.7
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f1/40/e407366816646bb452578997e6ca2140f004eec8f611e8512ee429ded2be/dlib-19.20.0.tar.gz (3.2 MB)
|████████████████████████████████| 3.2 MB 6.4 MB/s
Using legacy setup.py install for face-recognition-models, since package ‘wheel’ is not installed.
Using legacy setup.py install for dlib, since package ‘wheel’ is not installed.
Installing collected packages: Click, face-recognition-models, dlib, face-recognition
Running setup.py install for face-recognition-models … done
Running setup.py install for dlib … error
ERROR: Command errored out with exit status 1:
command: ‘g:\python\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\MaV15\AppData\Local\Temp\pip-install-e5xemt14\dlib\setup.py’"’"’; file=’"’"‘C:\Users\MaV15\AppData\Local\Temp\pip-install-e5xemt14\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\MaV15\AppData\Local\Temp\pip-record-6p_fa5q4\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘g:\python\Include\dlib’
cwd: C:\Users\MaV15\AppData\Local\Temp\pip-install-e5xemt14\dlib
Complete output (55 lines):
running install
running build
running build_py
package init file ‘dlib_init_.py’ not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File “C:\Users\MaV15\AppData\Local\Temp\pip-install-e5xemt14\dlib\setup.py”, line 120, in get_cmake_version
out = subprocess.check_output([‘cmake’, ‘–version’])
File “g:\python\lib\subprocess.py”, line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “g:\python\lib\subprocess.py”, line 489, in run
with Popen(*popenargs, **kwargs) as process:
File “g:\python\lib\subprocess.py”, line 854, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “g:\python\lib\subprocess.py”, line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\MaV15\AppData\Local\Temp\pip-install-e5xemt14\dlib\setup.py", line 223, in <module>
    setup(
  File "g:\python\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "g:\python\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "g:\python\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "g:\python\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "g:\python\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "g:\python\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "g:\python\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "g:\python\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "g:\python\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "g:\python\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "g:\python\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\MaV15\AppData\Local\Temp\pip-install-e5xemt14\dlib\setup.py", line 129, in run
    cmake_version = self.get_cmake_version()
  File "C:\Users\MaV15\AppData\Local\Temp\pip-install-e5xemt14\dlib\setup.py", line 122, in get_cmake_version
    raise RuntimeError("\n*******************************************************************\n" +
RuntimeError:
*******************************************************************
 CMake must be installed to build the following extensions: dlib
*******************************************************************

----------------------------------------

ERROR: Command errored out with exit status 1: ‘g:\python\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\MaV15\AppData\Local\Temp\pip-install-e5xemt14\dlib\setup.py’"’"’; file=’"’"‘C:\Users\MaV15\AppData\Local\Temp\pip-install-e5xemt14\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\MaV15\AppData\Local\Temp\pip-record-6p_fa5q4\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘g:\python\Include\dlib’ Check the logs for full command output.

C:\Users\MaV15>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple cmake
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting cmake
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d7/56/548e1fcc03e02abe4fca8780aa8cd002319cca1e3bff8244480db5f5afca/cmake-3.17.3-py3-none-win_amd64.whl (33.7 MB)
|████████████████████████████████| 33.7 MB 100 kB/s
Installing collected packages: cmake
Successfully installed cmake-3.17.3

C:\Users\MaV15>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple face_recognition
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting face_recognition
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1e/95/f6c9330f54ab07bfa032bf3715c12455a381083125d8880c43cbe76bb3d0/face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: numpy in g:\python\lib\site-packages (from face_recognition) (1.18.5)
Collecting dlib>=19.7
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f1/40/e407366816646bb452578997e6ca2140f004eec8f611e8512ee429ded2be/dlib-19.20.0.tar.gz (3.2 MB)
Requirement already satisfied: face-recognition-models>=0.3.0 in g:\python\lib\site-packages (from face_recognition) (0.3.0)
Requirement already satisfied: Click>=6.0 in g:\python\lib\site-packages (from face_recognition) (7.1.2)
Requirement already satisfied: Pillow in g:\python\lib\site-packages (from face_recognition) (7.1.2)
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: ‘g:\python\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\MaV15\AppData\Local\Temp\pip-install-xxyc7jii\dlib\setup.py’"’"’; file=’"’"‘C:\Users\MaV15\AppData\Local\Temp\pip-install-xxyc7jii\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\MaV15\AppData\Local\Temp\pip-record-e5afl1dt\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘g:\python\Include\dlib’
cwd: C:\Users\MaV15\AppData\Local\Temp\pip-install-xxyc7jii\dlib
Complete output (77 lines):
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.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: ‘cmake C:\Users\MaV15\AppData\Local\Temp\pip-install-xxyc7jii\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\MaV15\AppData\Local\Temp\pip-install-xxyc7jii\dlib\build\lib.win-amd64-3.8 -DPYTHON_EXECUTABLE=g:\python\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\MaV15\AppData\Local\Temp\pip-install-xxyc7jii\dlib\build\lib.win-amd64-3.8 -A x64’
– Building for: Visual Studio 11 2012
– The C compiler identification is MSVC 17.0.50727.1
– The CXX compiler identification is MSVC 17.0.50727.1
– Check for working C compiler: E:/VS2012/VC/bin/x86_amd64/cl.exe
– Check for working C compiler: E:/VS2012/VC/bin/x86_amd64/cl.exe - works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: E:/VS2012/VC/bin/x86_amd64/cl.exe
– Check for working CXX compiler: E:/VS2012/VC/bin/x86_amd64/cl.exe - works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Found PythonInterp: G:/Python/python.exe (found version “3.8”)
– Found PythonLibs: G:/Python/libs/Python38.lib
– pybind11 v2.2.2
– Using CMake version: 3.17.3
– Compiling dlib version: 19.20.0
CMake Error at C:/Users/MaV15/AppData/Local/Temp/pip-install-xxyc7jii/dlib/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/MaV15/AppData/Local/Temp/pip-install-xxyc7jii/dlib/dlib/cmake_utils/test_for_sse4/CMakeLists.txt:8 (include)

CMake Error at C:/Users/MaV15/AppData/Local/Temp/pip-install-xxyc7jii/dlib/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/MaV15/AppData/Local/Temp/pip-install-xxyc7jii/dlib/dlib/cmake_utils/set_compiler_specific_options.cmake:13 (include)
  C:/Users/MaV15/AppData/Local/Temp/pip-install-xxyc7jii/dlib/dlib/CMakeLists.txt:33 (include)


-- Configuring incomplete, errors occurred!
See also "C:/Users/MaV15/AppData/Local/Temp/pip-install-xxyc7jii/dlib/build/temp.win-amd64-3.8/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\MaV15\AppData\Local\Temp\pip-install-xxyc7jii\dlib\setup.py", line 223, in <module>
    setup(
  File "g:\python\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "g:\python\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "g:\python\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "g:\python\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "g:\python\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "g:\python\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "g:\python\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "g:\python\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "g:\python\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "g:\python\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "g:\python\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\MaV15\AppData\Local\Temp\pip-install-xxyc7jii\dlib\setup.py", line 135, in run
    self.build_extension(ext)
  File "C:\Users\MaV15\AppData\Local\Temp\pip-install-xxyc7jii\dlib\setup.py", line 172, in build_extension
    subprocess.check_call(cmake_setup, cwd=build_folder)
  File "g:\python\lib\subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\MaV15\\AppData\\Local\\Temp\\pip-install-xxyc7jii\\dlib\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\MaV15\\AppData\\Local\\Temp\\pip-install-xxyc7jii\\dlib\\build\\lib.win-amd64-3.8', '-DPYTHON_EXECUTABLE=g:\\python\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\MaV15\\AppData\\Local\\Temp\\pip-install-xxyc7jii\\dlib\\build\\lib.win-amd64-3.8', '-A', 'x64']' returned non-zero exit status 1.
----------------------------------------

ERROR: Command errored out with exit status 1: ‘g:\python\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\MaV15\AppData\Local\Temp\pip-install-xxyc7jii\dlib\setup.py’"’"’; file=’"’"‘C:\Users\MaV15\AppData\Local\Temp\pip-install-xxyc7jii\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\MaV15\AppData\Local\Temp\pip-record-e5afl1dt\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘g:\python\Include\dlib’ Check the logs for full command output.

C:\Users\MaV15>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --no-dependencies face_recognition
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting face_recognition
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1e/95/f6c9330f54ab07bfa032bf3715c12455a381083125d8880c43cbe76bb3d0/face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Installing collected packages: face-recognition
Successfully installed face-recognition-1.3.0

C:\Users\MaV15>

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐