Windows 下用 build_win.cmd 编译 caffe-windows 出错类似Could not find url for MSVC version = 1900 and Python

9 篇文章 0 订阅
1 篇文章 0 订阅

说明:

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.

CMakeLists.txt:77 (include)

解决:

将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)的后半部分一致了。


暂完~~

如有新问题将继续汇总于此~~


评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值