当前位置:   article > 正文

conda create错误:"Collecting package metadata (current_repodata.json): failed"

collecting package metadata (current_repodata.json): failed condahttperror:

安装完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\')])")))'))
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

从错误信息看是无法获取资源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’.
  • 1
  • 2
  • 3
  • 4
  • 5

所以关闭conda的ssl验证即可, 输入一下命令

conda config --set ssl_verify false
  • 1

参考

记一次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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/385880
推荐阅读