关于python2.7版本pip install出现Max retries exceeded with url: /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.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version’),)) - skipping
栈溢出:
Python.org sites have recently stopped support for TLS v1.0 and v1.1
Try upgrading pip as follows:
curl https://bootstrap.pypa.io/get-pip.py | python
(但是检验无效)
解决方案:
升级python版本到2.7.14以上。
python2.7版本pip install出现Caused by SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL2
最新推荐文章于 2024-03-17 18:54:16 发布