写点什么

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

用户头像
陈磊@Criss
关注
发布于: 2020 年 08 月 12 日



版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:http://blog.csdn.net/crisschan



问题: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



用户头像

陈磊@Criss

关注

测者观天下bugs 2018.03.11 加入

华为云MVP,阿里云MVP

评论

发布
暂无评论
PIP的报错Could not fetch URL https://pypi.org/