我在没有完全控制入站/出站流量处理的环境中在
Windows 7 64位上使用
Python 3.x.直到本周,我已经能够使用带有pip的–trusted-host pypi.python.org标志,一切正常.本周,即使使用–trusted-host标志,我也开始收到以下错误.
Could not fetch URL https://pypi.python.org/simple/pytubes/: There was a probl
em confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate
verify failed (_ssl.c:720) - skipping
鉴于本周的pypi变化,我尝试将–trusted-host标志更改为https://files.pythonhosted.org/packages/,但这似乎没有帮助.
我还尝试下载和安装certifi,wincerstore和win32 certifi的轮子以及针对此类问题的其他stackoverflow建议,例如digistore .pem cert和pip.ini文件,但没有任何成功.
对于curl下载,我必须传递-k in,并且运行python get-pip.py会失败,并且pip会出现类似的ssl错误:
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)'),)': /simple/pip/
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(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)'),)) - skipping
Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip
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: /sim