记录一下过程:
1、先是到清华镜像源按照以下网址的步骤操作anaconda | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
2、跟着这位博主操作anaconda在创建虚拟环境时出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url问题_.鸣蜩.的博客-优快云博客
总结一些镜像源以及conda查看源、删除源等命令:
阿里源:
conda config --add channels https://mirrors.aliyun.com/pypi/simple/
清华源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
清华源还提供了 Anaconda 仓库与第三方源(conda-forge、msys2、pytorch等)的镜像。如果需要pytorch, 还需要添加pytorch的镜像:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
中科大源:
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
conda config --set show_channel_urls yes
【
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/ 】
查看已安装的源:
conda config --show-sources或conda config --show channels
换回默认源:conda config --remove-key channels
删除安装的源:conda config --remove channels
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
将包源路径显示出来,命令为:conda config --set show_channel_urls yes
经过无数次实验证明,清华源必须是http,https必定会报HTTP错误的!!
本文解决Anaconda创建虚拟环境时出现CondaHTTPError的问题。通过调整镜像源及配置,最终成功创建虚拟环境。
https://blog.youkuaiyun.com/lyydcg/article/details/115967216?ops_request_misc=&request_id=&biz_id=102&utm_term=CondaHTTPError:%20HTTP%20000%20CONNE&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-4-115967216.142%5Ev63%5Ejs_top,201%5Ev3%5Econtrol_1,213%5Ev2%5Et3_esquery_v3&spm=1018.2226.3001.4187
2049

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



