概述
安装完Minconda后运行命令conda create --name test python=3.6
报如下错误
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/current_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.
SSLError(MaxRetryError('HTTPSConnectionPool(host='mirrors.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /anaconda/pkgs/main/linux-64/current_repodata.json (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))'))
从错误信息看是无法获取资源https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/current_repodata.json
, 进而通过wget
命令尝试获取该资源
>>wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/current_repodata.json
ERROR: cannot verify mirrors.tuna.tsinghua.edu.cn’s certificate, issued by “/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3”:
Issued certificate not yet valid.
To connect to mirrors.tuna.tsinghua.edu.cn insecurely, use ‘--no-check-certificate’.
所以关闭conda的ssl验证即可, 输入一下命令
conda config --set ssl_verify false
参考
记一次conda遇到的坑_Python_不去想结果,一直在路上-CSDN博客
https://blog.csdn.net/xtfge0915/article/details/84977765
Conda update failed: SSL error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed - Stack Overflow
https://stackoverflow.com/questions/33699577/conda-update-failed-ssl-error-ssl-certificate-verify-failed-certificate-ver
最后
以上就是怡然红牛为你收集整理的conda create错误:"Collecting package metadata (current_repodata.json): failed"参考的全部内容,希望文章能够帮你解决conda create错误:"Collecting package metadata (current_repodata.json): failed"参考所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复