Python 3.x 执行cmake时出错

Python 3.x 执行cmake时出错,python-3.x,cmake,dlib,Python 3.x,Cmake,Dlib,我正在尝试为python 3.5安装dlib库 -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error in CMakeLists.txt: No CMAKE_CXX_COMPILER could be found. -- Configuration incomplete, error occured

我正在尝试为python 3.5安装dlib库

    -- The C compiler identification is unknown

    -- The CXX compiler identification is unknown
    CMake Error in CMakeLists.txt:
      No CMAKE_CXX_COMPILER could be found.


    -- Configuration incomplete, error occured!
尝试在dlib中执行cmake后,CMakeError.log的内容:

Build started 13-Apr-17 7:55:06 PM.
Project "C:\Users\AnkitaShinde\AppData\Local\Programs\Python\Python35-32\Lib\dlib\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
C:\Users\AnkitaShinde\AppData\Local\Programs\Python\Python35-32\Lib\dlib\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\Users\AnkitaShinde\AppData\Local\Programs\Python\Python35-32\Lib\dlib\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\AnkitaShinde\AppData\Local\Programs\Python\Python35-32\Lib\dlib\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
  C:\Users\AnkitaShinde\AppData\Local\Programs\Python\Python35-32\Lib\dlib\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.02
构建于2017年4月13日下午7:55:06开始。
节点1上的项目“C:\Users\AnkitaShinde\AppData\Local\Programs\Python\35-32\Lib\dlib\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj”(默认目标)。
C:\Users\AnkitaShinde\AppData\Local\Programs\Python\35-32\Lib\dlib\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3):错误MSB4019:找不到导入的项目“C:\Microsoft.Cpp.Default.props”。确认声明中的路径正确,并且文件存在于磁盘上。
已完成生成项目“C:\Users\AnkitaShinde\AppData\Local\Programs\Python\Python35-32\Lib\dlib\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj”(默认目标)——失败。
生成失败。
“C:\Users\AnkitaShinde\AppData\Local\Programs\Python\Python35-32\Lib\dlib\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj”(默认目标)(1)->
C:\Users\AnkitaShinde\AppData\Local\Programs\Python\35-32\Lib\dlib\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3):错误MSB4019:找不到导入的项目“C:\Microsoft.Cpp.Default.props”。确认声明中的路径正确,并且文件存在于磁盘上。
0个警告
1个错误
时间流逝00:00:00.02

1。请将文本复制到您的问题中,而不是提供纯文本的屏幕截图。2.您是否已经安装了C编译器,并且位于您正在使用的cmd会话的
路径中?谢谢您的反馈。我使用的是Visual Studio 2015。dlib问题是特定的吗?瞧,如果你尝试生成一个最小的CMake项目,这行吗?你能不能把文本作为文本放进去?这是dlib特有的问题这是MSVC编译器众所周知的问题,而不是dlib问题。默认情况下,VisualStudio不安装C++编译器。查看此问题以了解详细信息: