anaconda安装tensorflow中的巨坑,以及管用的镜像的提供

anaconda安装tensorflow中的巨坑

世上本没有坑,踩的人多了,也就变成了坑,我安装tensorflow可谓是历经九九八十一难现在我就将我踩得坑分享一下,希望对你们有所帮助吧!

下载镜像(清华)

anaconda下载中的注意事项

!!!必须是64bit,作为先烈我是满眼泪汪汪,两个月前装了3天死活装不上tensorflow

ERROR: Could not find a version that satisfies the requirement 
tensorflow-gpu (from versions: none) 
ERROR: No matching distribution found for tensorflow-gpu

就这东西,我看着就心态爆炸,找了诸多教程没用。最后才发现我的anaconda是32bit,所以py版本自然是32bit,当下tensorflow不支持32bit,所以就果断白给。所以下载的时候注意一点务必下载64bit版本的anaconda

anaconda运行镜像

没有翻墙的话在官网下载速度龟速,我曾经下了8h还没下好,比网盘坑,所以还是镜像吧!

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda config --set show_channel_urls yes

直接在anaconda的prompt中ctrlCV一下就OK了,其余的 一些操作其他博客上都有就不说了

-----------------------------------------------------------------------------------------------------
补充一下关于镜像的问题
下载tensorflow时使用此镜像绝对管用

最新清华镜像地址

channels:
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

下载其他第三方库时使用此镜像速度飞快

pip install xxx -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值