anaconda使用conda报错CondaHTTPError怎么办
小编给大家分享一下anaconda使用conda报错CondaHTTPError怎么办,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!
这个问题的原因是你在用conda命令的时候是调用了国外conda网站来给你安装某些功能包,但是你在国内用可能会出错
解决:
condaconfig--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/##配置清华源condaconfig--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/condaconfig--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/condaconfig--setshow_channel_urlsyes###使能
或者搜索你的.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怎么办有了一定的了解,想了解更多相关知识,欢迎关注亿速云行业资讯频道,感谢各位的阅读!
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。