Anaconda An HTTP error occurred when trying to retrieve this URL.HTTP errors are often intermittent,

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013985879/article/details/82818822

在学习TensorFlow时,需要下载tensorflow-gpu 第三方库,始终卡在了cudatoolkit

提示如下异常信息:

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.

解决方案:

可以用清华大学提供的镜像

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

conda config --set show_channel_urls yes

在C:\Users\用户名 目录下找到并打开 .condarc 文件加上如下内容:

channels: 
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 
- defaults

show_channel_urls: yes

然后下载

  

猜你喜欢

转载自blog.csdn.net/u013985879/article/details/82818822