背景
今天使用conda create -name xxxxx python==3.8创建新环境时,报错CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/current_repodata.json>
解决
经过百度几篇文章,得到最简单快速的解决方案
1. 打开conda的环境配置文件.condarc,路径是C:\Users\用户名\.condarc
2.修改内容并保存(修改成新华源、并且镜像地址加上win-64,且一定是http)
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/
3.再次执行创建环境命令,成功
