赞
踩
安装完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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。