我已经安装了Cmake并将其添加到PATH中并安装了Visual Studio 2017,但我没有设法克服此错误(VB安装在D驱动器上)
错误:命令错误,退出状态为1: 命令:'c:\ python \ python37 \ python.exe'-u -c'导入sys,setuptools,令牌化; sys.argv [0] ='“'”'C:\ Users \ mathe \ AppData \ Local \ Temp \ pip-install-dsu8c1p3 \ dlib \ setup.py'“”“; 文件 ='“'”'C:\ Users \ mathe \ AppData \ Local \ Temp \ pip-install-dsu8c1p3 \ dlib \ setup.py'“'”'; f = getattr(tokenize, '“”“'open'”'“,打开)(文件); code = f.read()。replace('”'“'\ r \ n'”'“', ''''“'\\ n'”'“'); f.close(); exec(compile(code, file ,'”'“'exec'”'“')))'安装--record'C:\ Users \ mathe \ AppData \ Local \ Temp \ pip-record-ocqaxrci \ install-record.txt'-单一版本-外部管理--compile --install-headers'c:\ python \ python37 \ Include \ dlib' CWD:C:\ Users \ mathe \ AppData \ Local \ Temp \ pip-install-dsu8c1p3 \ dlib \ 完整输出(57行): 运行安装 运行构建 运行build_py 找不到包初始化文件“ dlib__init __。py”(或非常规文件) 运行build_ext Python 3.7.7的构建扩展(tags / v3.7.7:d7c567b08f,2020年3月10日,10:41:24)[MSC v.1900 64位(AMD64)] 调用CMake设置:'cmake C:\ Users \ mathe \ AppData \ Local \ Temp \ pip-install-dsu8c1p3 \ dlib \ tools \ python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY = C:\ Users \ mathe \ AppData \ Local \ Temp \ pip-install- dsu8c1p3 \ dlib \ build \ lib.win-amd64-3.7 -DPYTHON_EXECUTABLE = c:\ python \ python37 \ python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE = C:\ Users \ mathe \ AppData \ Local \ Temp \ pip-install-dsu8c1p3 \ dlib build \ lib.win-amd64-3.7 -A x64' -构建:NMake Makefiles CMakeLists.txt:3(项目)处的CMake错误: 生成器
NMake Makefiles
does not support platform specification, but platform
x64
was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage