如何解决Cmake隐式转换'BOOLEAN'到'STRING'类型

问题描述 投票:0回答:1

我正在尝试在我的笔记本电脑上设置caffe,当我运行scripts\build_win.cmd命令时,我得到以下错误:

CMake Warning (dev) at cmake/Misc.cmake:32 (set):
  implicitly converting 'BOOLEAN' to 'STRING' type.
Call Stack (most recent call first):
  CMakeLists.txt:33 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: C:/Anaconda3/python.exe (found suitable version 
"3.7.3", minimum required is "2.7")
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:40 (message):
  Could not find url for MSVC version = 1900 and Python version = 3.7.
Call Stack (most recent call first):
  CMakeLists.txt:77 (include)


-- Configuring incomplete, errors occurred!
See also "C:/Users/p12ai/caffe/build/CMakeFiles/CMakeOutput.log".
ERROR: Configure failed

我目前安装了VS 2015,并且我安装了它提供的所有python数据包和C ++数据包。我有最新的conda安装与python 3.7有谁知道是什么原因导致这个和如何解决它?如果您想了解任何文件或其他详细信息,请与我们联系。

python visual-studio cmake caffe
1个回答
0
投票

所以我不确定为什么它不起作用,但由于某些原因我用Python 3.5重新安装anaconda后,重新启动计算机,我不再有这个问题了。我知道caffe需要python 3.5或2.7,所以我猜这是它的一部分,虽然我之前有这个版本的anaconda时有这个问题。因为我没有重新启动计算机,所以我猜它没有用

© www.soinside.com 2019 - 2024. All rights reserved.