主要原因:配置没配对

解决办法:

①把镜像源https改成了http

②删除默认源

③设置一下

conda config --remove channels defaults

(添加镜像源,注意是http,而非https,因为https有时候会出现连接错误的问题,改成http后不会再出现此类问题。)

conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/

conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/

(在设置中显示以上镜像源)

conda config --set show_channel_urls yes

(关掉验证,对于http来说,走的是明文传输,不加密的,就不需要验证,其中信息的加密方式为SSL)

conda config --set ssl_verify false

引用:解决方法集合CondaHTTPError:HTTP 000 CONNECTION FAILED for url<https://mirrors.tuna.tsinghua.edu.cn/anaco_condahttperror: http 000 connection failed for url-CSDN博客 

推荐文章

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。