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 = 0
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: ============================================================
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:40 (message):
Could not find url for MSVC version = 1900 and Python version = 3.6.
Call Stack (most recent call first):
CMakeLists.txt:77 (include)
-- Configuring incomplete, errors occurred!
See also "C:/Users/caffe/build/CMakeFiles/CMakeOutput.log".
ERROR: Configure failed
I am following this and when I run scripts\build_win.cmd I got the above errors.
I looked all the possible solutions and they are either not solved or not clear to me. My cmake generator is Ninja while most people's generator is some version of Visual Studio.
Python 3.6 must be installed on your system and is the version picked up by CMake. The current windows branch does not support Python 3.6 yet.
Since you do not want pycaffe, you must remove the build directory, disable the python build with set BUILD_PYTHON=0 in your terminal and execute the scripts/build_win.cmd script.
Otherwise, make sure CMake finds your Python 2.7 by specifying additional options on the CMake command line, like PYTHON_EXECUTABLE.
Thank you mister, after many trials I had deleted them all before I saw you reply and now it's fresh. Would you mind explaining what to do step by step? I think it would be useful for other folks as well. Right now I have Cmake only. For example, I don't know how to remove the build directory or disable python build, I haven't done them before. Or at least, could you refer to any link that explains all these things in detail? Thank you
add the following line to the cmake section in the build_win.cmd
-DPYTHON_EXECUTABLE:FILEPATH=C:\Users\xyzAnaconda3\envs\py35\python.exe ^
eg.
:: Configure using cmake and using the caffe-builder dependencies
:: Add -DCUDNN_ROOT=C:/Projects/caffe/cudnn-8.0-windows10-x64-v5.1/cuda ^
:: below to use cuDNN
cmake -G"!CMAKE_GENERATOR!" ^
-DBLAS=Open ^
-DCMAKE_BUILD_TYPE:STRING=%CMAKE_CONFIG% ^
-DBUILD_SHARED_LIBS:BOOL=%CMAKE_BUILD_SHARED_LIBS% ^
-DBUILD_python:BOOL=%BUILD_PYTHON% ^
-DBUILD_python_layer:BOOL=%BUILD_PYTHON_LAYER% ^
-DBUILD_matlab:BOOL=%BUILD_MATLAB% ^
-DCUDNN_ROOT=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1 ^
-DCPU_ONLY:BOOL=%CPU_ONLY% ^
-DCOPY_PREREQUISITES:BOOL=1 ^
-DINSTALL_PREREQUISITES:BOOL=1 ^
-DUSE_NCCL:BOOL=!USE_NCCL! ^
-DCUDA_ARCH_NAME:STRING=%CUDA_ARCH_NAME% ^
-DPYTHON_EXECUTABLE:FILEPATH=C:\Users\xyzAnaconda3\envs\py35\python.exe ^
"%~dp0.."
if you don't mind can i ask you something?
I also CMake Error at
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:40 (message):
Could not find url for MSVC version = 1800 and Python version = 3.5.
Call Stack (most recent call first):
CMakeLists.txt:77 (include)
when I run scriptsbuild_win.cmd I got the errors.
OS : window 10
CUDA7.5
cudnnv5 for cuda7.5
python = 3.5.2
@sungwuk You need VS 2015 or 2017. You have 2013.
You can also try my conda packages. See https://github.com/BVLC/caffe/issues/6569#issuecomment-432491851.
Closing since both situtations require rebuilding dependencies from source with caffe-builder.
Python 3.6 must be installed on your system and is the version picked up by CMake. The current windows branch does not support Python 3.6 yet.
Since you do not want pycaffe, you must remove the build directory, disable the python build with
set BUILD_PYTHON=0in your terminal and execute thescripts/build_win.cmdscript.Otherwise, make sure CMake finds your Python 2.7 by specifying additional options on the CMake command line, like
PYTHON_EXECUTABLE.
did not solve my case
Most helpful comment
did not solve my case