anaconda使用conda报错CondaHTTPError怎么办

2023-05-15,,

小编给大家分享一下anaconda使用conda报错CondaHTTPError怎么办,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!

这个问题的原因是你在用conda命令的时候是调用了国外conda网站来给你安装某些功能包,但是你在国内用可能会出错

解决:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/##配置清华源
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/pkgs/free/
conda config --set show_channel_urls yes###使能

或者搜索你的.condarc文件

删除-default一行,保证你的文件内容如下:

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_urls: true

看完了这篇文章,相信你对anaconda使用conda报错CondaHTTPError怎么办有了一定的了解,想了解更多相关知识,欢迎关注本站行业资讯频道,感谢各位的阅读!

《anaconda使用conda报错CondaHTTPError怎么办.doc》

下载本文的Word格式文档,以方便收藏与打印。