2017-05-10 145 views
0

我在安裝caffe時遇到此錯誤:我無法在anaconda僅安裝CPU的窗口上安裝caffe 10

................... .................................................. ......

The system cannot find the drive specified. 
The system cannot find the drive specified. 
INFO: ============================================================ 
INFO: Summary: 
INFO: ============================================================ 
INFO: MSVC_VERSION    = 14 
INFO: WITH_NINJA     = 1 
INFO: CMAKE_GENERATOR   = "Ninja" 
INFO: CPU_ONLY     = 1 
INFO: CUDA_ARCH_NAME    = Auto 
INFO: CMAKE_CONFIG    = Release 
INFO: USE_NCCL     = 0 
INFO: CMAKE_BUILD_SHARED_LIBS = 0 
INFO: PYTHON_VERSION    = 2 
INFO: BUILD_PYTHON    = 1 
INFO: BUILD_PYTHON_LAYER   = 1 
INFO: BUILD_MATLAB    = 0 
INFO: PYTHON_EXE     = "python" 
INFO: RUN_TESTS     = 0 
INFO: RUN_LINT     = 0 
INFO: RUN_INSTALL    = 0 
INFO: ============================================================ 
The system cannot find the path specified. 
-- The C compiler identification is unknown 
-- The CXX compiler identification is unknown 
CMake Error at CMakeLists.txt:18 (project): 
    No CMAKE_C_COMPILER could be found. 

    Tell CMake where to find the compiler by setting either the environment 
    variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to 
    the compiler, or to the compiler name if it is in the PATH. 


CMake Error at CMakeLists.txt:18 (project): 
    No CMAKE_CXX_COMPILER could be found. 

    Tell CMake where to find the compiler by setting either the environment 
    variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path 
    to the compiler, or to the compiler name if it is in the PATH. 


-- Configuring incomplete, errors occurred! 
See also "C:/Projects/caffe/build/CMakeFiles/CMakeError.log". 

ERROR: Configure failed 

..................................... ........................................

系統信息:我正在使用windows 10 64位操作系統

安裝: 蟒蛇蟒蛇 2.7和python 3.6 我沒有GPU所以只是僅CPU

如果任何人能幫助我有了這個,我會欣賞>

+0

您是否嘗試過Google查看錯誤消息'找不到CMAKE_C_COMPILER'?有很多關於這種錯誤的帖子。 – Tsyvarev

+0

你使用什麼命令進行安裝......我想你正在構建...不是取決於? – Eliethesaiyan

+0

是的我試圖用這個鏈接安裝caffe:https://github.com/BVLC/caffe/tree/windows – ahmedsailm

回答

0

您需要設置設置CMAKE_C_COMPILERCMAKE_CXX_COMPILER。這可以通過編輯scripts/build_win.cmd以在運行cmake(大致在160行左右)爲您的C和C++編譯器提供正確的路徑。

例如,

cmake -G"!CMAKE_GENERATOR!"^
... 
-DCMAKE_C_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64/cl.exe"^
-DCMAKE_CXX_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64/cl.exe"^
...