其他分享
首页 > 其他分享> > PIP的报错Could not fetch URL https://pypi.org/

PIP的报错Could not fetch URL https://pypi.org/

作者:互联网

问题:pip安装报错

Could not fetch URL https://pypi.org/simple/beaker/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/beaker/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))) - skipping
  ERROR: Could not find a version that satisfies the requirement beaker (from versions: none)
ERROR: No matching distribution found for beaker
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:1076)'))) - skipping

原因:

可能是 ssl 证书没有认证。

解决办法:

pip  --trusted-host pypi.python.org install 安装包
例如: pip  --trusted-host pypi.python.org install beaker

标签:beaker,certificate,URL,Could,pypi,ssl,报错,pip,org
来源: https://blog.csdn.net/chenlei_525/article/details/104811936