conda使用清华源一直出现HTTP错误问题
错误描述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.第二次遇到这个问题了,上次搁置没有解决…这次是在创建conda新环境的时候出现的,conda create -n myE
·
错误描述
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.
- 第二次遇到这个问题了,上次搁置没有解决…
- 这次是在创建conda新环境的时候出现的,
conda create -n myEnvironmentName python=3.7
PS:如果是安装依赖包的话不如使用pip install
,conda安装包太不友好了。。
问题解决
这个方法对我有效,不知道对你有没有效
- 打开conda配置文件
vim .condarc
- 删除原文件内容并替换为下面的。
channels:
- defaults
show_channel_urls: true
default_channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
custom_channels:
conda-forge: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
- Bingo~,成功了hhh
更多推荐
已为社区贡献1条内容
所有评论(0)