Ubuntu下通过conda安装tensorflow-gpu报错
在运行以下命令安装tensorflow,即使将conda源换成清华源也报错
conda install tensorflow-gpu
其中错误提示如下
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
解决方法
vi ~/.condarc
将.condarc里面添加以下内容
channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_urls: true
report_errors: true
然后重新运行以下命令,即可正确安装
conda install tensorflow-gpu
参考文献:
https://blog.csdn.net/u013985879/article/details/82818822