Win10 python 3.7执行python get-pip.py 出现一下错误:
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))) - skipping
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
ERROR: No matching distribution found for pip
具体过程如下:
Collecting 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: unable to get local issuer certificate (_ssl.c:1056)'))': /simple/pip/
WARNING: Retrying (Retry

在Win10环境下使用Python 3.7运行get-pip.py时遇到SSL证书验证错误,导致无法从pypi.org下载pip。错误信息包括Max retries exceeded和CERTIFICATE_VERIFY_FAILED。解决方案是更新或安装ca证书。
最低0.47元/天 解锁文章
379

被折叠的 条评论
为什么被折叠?



