我如何用cmake解决dlib错误?

时间:2019-06-17 10:27:19

标签: python cmake face-recognition dlib

ı已经安装了cmake,在ı键入pip时安装cmake时,它已经在其中了。但是当我写pip时,安装dlib或face_recogntion我会出错

ERROR: Complete output from command 'C:\Users\giris\AppData\Local\Programs\Python\Python37-32\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\giris\\AppData\\Local\\Temp\\pip-install-5bdpmey0\\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\giris\AppData\Local\Temp\pip-record-p5f_jmbr\install-record.txt' --single-version-externally-managed --compile:
ERROR: 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, 21:26:53) [MSC v.1916 32 bit (Intel)]
Invoking CMake setup: 'cmake C:\Users\giris\AppData\Local\Temp\pip-install-5bdpmey0\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\giris\AppData\Local\Temp\pip-install-5bdpmey0\dlib\build\lib.win32-3.7 -DPYTHON_EXECUTABLE=C:\Users\giris\AppData\Local\Programs\Python\Python37-32\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\giris\AppData\Local\Temp\pip-install-5bdpmey0\dlib\build\lib.win32-3.7'
-- Building for: NMake Makefiles
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
  The CMAKE_C_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  To use the NMake generator with Visual C++, cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem, run cmake from 

每当我收到此错误时,它有什么问题[![在此处输入图片描述] [1]] [1]

0 个答案:

没有答案