问题:
在用conda创建新环境时出现以下问题
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/current_repodata.json>
原因分析:
安装环境包的镜像源无法连接使用。
解决方案:
第一步: 打开Power Shell(或者cmd命令行终端也可以),执行“conda config --remove-key channels”命令,删除原来的镜像源配置。
第二步:打开“C:\Users\Administrator”,可以找到一个“.condarc”文件,打开该文件,更新为以下内容:
ssl_verify: true
show_channel_urls: true
channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/
注意:一定要是http而不能为https
第三步:问题解决,可以安装环境了。
本文介绍了解决在使用conda创建新环境时遇到连接失败的问题的方法。通过调整镜像源配置,确保能顺利安装所需的环境。
17万+

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



