说明:
caffe-windows(caffe windows版 可从github上 https://github.com/BVLC/caffe/tree/windows 下载);
该版本截止目前(2018年4月)关于python只支持2.7和3.5,所以如果python用其他版本如我最初的python3.6.3就会出现如下问题:
注:如有其他问题产生,可浏览该caffe-windows github的issues页面去查找你的error或对应问题,方便直接。
所遇到的问题:
Windows 下用 build_win.cmd 编译 caffe-windows 出错类似Could not find url for MSVC version = 1900 and Python version = 3.6.
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:40(message):
Could not find url for MSVC version = 1900 and Python version = 3.6.
解决:
将python的版本换成3.5或者2.7就可以解决。
因为我是用最新的anaconda3来安装的python,所以使用了其默认的python版本为3.6.3,便出现了上述的问题和错误。
修改python版本的方法,在anaconda的官方FAQ (https://docs.anaconda.com/anaconda/faq#how-do-i-get-anaconda-with-python-3-5)有说明:
There are three ways to get Anaconda with Python 3.5:
- We recommend that you download the latest version of Anaconda and then make a Python 3.5 environment.
- Or download the latest version of Anaconda and run this command to install Python 3.5 in the root environment:
condainstall python=3.5
- Or download the most recent Anaconda that included Python 3.5 by default, Anaconda 4.2.0. You can download it from our archive. Scroll down the page until you find version 4.2.0 for your platform.
修改好后,重新执行 build_win.cmd即可,之后便和 这篇(https://blog.csdn.net/chris_zhangrx/article/details/79096015)的后半部分一致了。
暂完~~
如有新问题将继续汇总于此~~