Как я могу решить ошибку dlib с помощью cmake? - PullRequest
0 голосов
/ 17 июня 2019

я установил cmake, а когда я набрал команду pip install cmake, он сказал, что он уже там. но когда я пишу pip install 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]

...