anaconda使用conda报错CondaHTTPError解决

268次阅读
没有评论

anaconda使用conda报错CondaHTTPError解决

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

推荐:anaconda使用教程

解决:

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

更多python知识请关注python视频教程。

神龙|纯净稳定代理IP免费测试>>>>>>>>天启|企业级代理IP免费测试>>>>>>>>IPIPGO|全球住宅代理IP免费测试

相关文章:

版权声明:python工具2022-12-12发表,共计675字。
新手QQ群:570568346,欢迎进群讨论 Python51学习