anaconda 更换国内镜像源后下载出错

错误信息:

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.

ConnectionError(MaxRetryError("HTTPSConnectionPool(host='mirrors.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /anaconda/pkgs/free/linux-64/repodata.json (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 101] Network is unreachable',))",),)

 

解决方法:

首先确定更换的国内源可以用浏览器访问,

镜像源目前好像只有中科大https://mirrors.ustc.edu.cn/anaconda/pkgs/free/和清华两个

cd 
sudo gedit .condarc

删除 - default 所在的行

.condarc的内容应该是

channels:
  - http://mirrors.ustc.edu.cn/anaconda/pkgs/free/
show_channel_urls: true

 

之后就可以使用conda下载了

 

 

你可能感兴趣的:(anaconda 更换国内镜像源后下载出错)