背景
今天使用conda create -name xxxxx python==3.8
創(chuàng)建新環(huán)境時(shí),報(bào)錯(cuò)CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/current_repodata.json>
解決
經(jīng)過百度幾篇文章式矫,得到最簡(jiǎn)單快速的解決方案
1. 打開conda的環(huán)境配置文件.condarc
示罗,路徑是C:\Users\用戶名\.condarc
2.修改內(nèi)容并保存(修改成新華源浙值、并且鏡像地址加上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/