pip [SSL: CERTIFICATE_VERIFY_FAILED]

问题:

Could not fetch URL https://pypi.org/simple/pypi-org/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pypi-org/ (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)'),)) - skipping

原因:
host=’pypi.org’ 不信任
解决:
添加参数–trusted-host pypi.org

PS:
关闭掉fiddler

Check if you have fiddler opened and close it. Fiddler try break SSL and this breaks pip, when I close fiddler pip works for me. When I close my fiddler everything goes ok   

参考:https://blog.csdn.net/zsyoung/article/details/80140388

猜你喜欢

转载自blog.csdn.net/xyh421/article/details/80262852