1. 程式人生 > 實用技巧 >python cmake 下載失敗? No CMAKE_C_COMPILER could be found.

python cmake 下載失敗? No CMAKE_C_COMPILER could be found.

1. pip install cmake --default-timeout=100 -i https://pypi.tuna.tsinghua.edu.cn/simple

2. 第二個錯誤:

-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version to target Windows 10.0.17763.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:14 (project):

No CMAKE_C_COMPILER could be found.

排除法首先看看VS 2017 有沒有安裝Windows SDK10.0.17763. 我是安裝了SDK後好了的。

如圖: