Python virtualenv安裝庫報錯SSL CERTIFICATE VERIFY FAILED
阿新 • • 發佈:2018-11-16
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow
也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!
Python virtualenv安裝庫報錯SSL: CERTIFICATE_VERIFY_FAILED
問題描述
使用pip按照virtualenv報錯,如下:
pip install virtualenvCollecting virtualenv/opt/python27/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. SNIMissingWarning Could not fetch URL https://pypi.python.org/simple/virtualenv/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) - skipping Could not find a version that satisfies the requirement virtualenv (from versions: )
- 1
- 2
- 3
- 4
- 5
- 6
解決辦法
使用–trusted-host命令列選項
pip --trusted-host pypi.python.org install virtualenv
- 1
轉載請以連結形式標明本文地址
本文地址:http://blog.csdn.net/kongxx/article/details/51187482