安装tensorflow-gpu速度慢
一般不建议采用: conda install tensorflow-gpu==2.1
方式,这种方式需要翻墙而且下载速度超级慢。
可以使用国内镜像:pip install tensorflow-gpu==2.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
依然超时的话,把图片所示终端里的链接复制下来自己下载(或拷贝到迅雷下载)
最后使用 pip install XXX.whl
安装
可用 conda list
查看
卸载 pip uninstall tensorflow-gpu
pip源有好几个,清华的pip源5分钟同步一次。
临时使用:
pip 后加参数 -i https://pypi.tuna.tsinghua.edu.cn/simple
例1:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas
例2:我想安装tensorflow-gpu1.4.1,执行:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==1.4.1
我们可以点进去那个清华链接,这个链接和下面那个conda的清华链接不太一样,注意,有非常多的镜像
镜像网址
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/