1.问题描述:conda无法创建虚拟环境并且无法安装其他第三方包,报错内容如下:
PS C:\Users\Administrator.DESKTOP-EEN44LR> conda create -n flask_py python=3.8
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
Elapsed: -
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.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

2.错误原因:默认镜像源访问速度过慢,会导致超时从而导致更新和下载失败。
3.解决方案:更换镜像源为清华镜像源,并且删除默认镜像源。
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda co
5723



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



