无法安装dlib

时间:2018-11-26 19:30:09

标签: python dlib cv2

嘿,我正在尝试安装dlib进行人脸识别,但它不起作用。 我所做的:

  • 已安装Anaconda
  • 已安装cmake
  • 将cmake添加到路径
  • 并安装了Visual Studio 2017

然后我安装了

pip install dlib==19.4

但它给了我错误:

Failed building wheel for dlib
Running setup.py clean for dlib
iled to build dlib
ce-recognition 1.2.3 has requirement dlib>=19.7, but you'll have dlib 19.4.0 which is incompatible.
stalling collected packages: dlib
Running setup.py install for dlib ... error
  Complete output from command "c:\users\rami janini\appdata\local\programs\python\python36\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\RAMIJA~1\\AppData\\Local\\Temp\\pip-install-amoxk95x\\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\RAMIJA~1\AppData\Local\Temp\pip-record-3whm9xaf\install-record.txt --single-version-externally-managed --compile:
  running install
  running build
  Detected Python architecture: 64bit
  Detected platform: win32
  Removing build directory C:\Users\RAMIJA~1\AppData\Local\Temp\pip-install-amoxk95x\dlib\./tools/python/build
  Configuring cmake ...
  -- Building for: Visual Studio 14 2015
  -- Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.17134.
  CMake Error in CMakeLists.txt:
    Failed to run MSBuild command:
      MSBuild.exe
    to get the value of VCTargetsPath:
      The system cannot find the file specified
  -- Configuring incomplete, errors occurred!
  See also "C:/Users/Rami Janini/AppData/Local/Temp/pip-install-amoxk95x/dlib/tools/python/build/CMakeFiles/CMakeOutput.log".
  error: cmake configuration failed!

0 个答案:

没有答案