我是靠谱客的博主 怡然红牛,最近开发中收集的这篇文章主要介绍conda create错误:"Collecting package metadata (current_repodata.json): failed"参考,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

安装完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"参考所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(40)

评论列表共有 0 条评论

立即
投稿
返回
顶部