项目场景:
Linux使用Miniconda或者Anaconda创建环境时网络报错:
问题描述:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://mirrors.tuna.tsinghurrent_repodata.json
Elapsed: -
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.
‘https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64’:
原因分析:
直接在linux上用火狐浏览器访问清华官网时发现网站访问不了:
解决方案:
所以关闭conda的ssl验证即可, 输入以下命令:
bin/conda config --set ssl_verify false
之后问题解决: