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('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf1f116310>: Failed to establish a new connection: [Errno 101] Network is unreachable',))",),)

解决方法:

sudo gedit .condarc

.condarc的内容应该是

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


猜你喜欢

转载自blog.csdn.net/qq_41994006/article/details/80998167
今日推荐