SSL:CERTIFICATE_VERIFY_FAILED证书验证失败:证书链中的自签名证书 (_ssl.c:1129) [重复]

SSL: CERTIFICATE_VERIFY_FAILED certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129) [duplicate]

提问人:N01E1se 提问时间:8/3/2023 最后编辑:N01E1se 更新时间:8/3/2023 访问量:784

问:

下午好,朋友们,

每次我尝试通过外部链接安装某些东西时,我都会收到很多错误和警告,但它仍然开始下载我需要的东西。如何在没有警告通知的情况下立即下载?如何克服设备上的证书验证?pip

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)'))': /releases/repo.html
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)'))': /releases/repo.html
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)'))': /releases/repo.html
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)'))': /releases/repo.html
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)'))': /releases/repo.html
Could not fetch URL https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='modelscope.oss-cn-beijing.aliyuncs.com', port=443): Max retries exceeded with url: /releases/repo.html (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)'))) - skipping

https://discuss.python.org/t/ssl-certificate-verify-failed-certificate-verify-failed-self-signed-certificate/14359 正在寻找解决方案,但它没有帮助,或者我做错了什么。

python ssl pip ssl-certificate 警告

评论

0赞 Steffen Ullrich 8/3/2023
这里有很多类似的问题。您的问题很可能通过其中之一得到解决。“......但这无济于事,或者我做错了什么。- 不幸的是,这句话没有说明你到底做了什么,所以缩小问题的原因根本没有帮助。

答: 暂无答案