1.问题描述:Anaconda 更新失败

2.解决方法:更换镜像源为清华镜像源,并且删除默认镜像源
默认镜像源访问速度过慢,会导致超时从而导致更新和下载失败,为了能够加快访问的速度,这里选择了清华的的镜像
(1)找到.condarc文件 用记事本打开并编辑

(2)修改并保存
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_urls: true
如下图所示

(3)重新启动命令行(cmd)或(anaconda prompt)
输入conda upgrade --all

参考链接:CondaHTTPError: HTTP 000 CONNECTION FAILED for url
本文介绍了解决Anaconda更新失败的问题,通过更换为清华镜像源并删除默认镜像源的方法,有效提升了更新速度,避免了因默认源访问缓慢导致的超时错误。
2065

被折叠的 条评论
为什么被折叠?



