我正在尝试在Python 2.7.0上安装pip。它必须在此版本中,因为我想使用3Blue1Brown's manim。但是,当我尝试安装pip时收到此消息:
Could not find a version that satisfies the requirement install (from versions
: )
No matching distribution found for install
当我输入python get-pip.py时,我收到了此消息
```
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None))
after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SS
L routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/ins
tall/
c:\users\snake\appdata\local\temp\tmpbgk_ty\pip.zip\pip\_vendor\urllib3\util\ssl
_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. Th
is prevents urllib3 from configuring SSL appropriately and may cause certain SSL
connections to fail. You can upgrade to a newer version of Python to solve this
. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-us
age.html#ssl-warnings
Could not fetch URL https://pypi.org/simple/install/: There was a problem conf
irming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max
retries exceeded with url: /simple/install/ (Caused by SSLError(SSLError(1, '_ss
l.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol
version'),)) - skipping
Could not find a version that satisfies the requirement install (from versions
: )
No matching distribution found for install
```
我从this website下载了OpenSSL,当我输入时
cmd openssl version
我得到了这个:
OpenSSL 1.0.1f 6 Jan 2014
我认为 OpenSSL已正确安装,但Python并未使用它(假设应该)。
答案 0 :(得分:0)
我发现Python已经通过
运行OpenSSL了import ssl
print(ssl.OPENSSL_VERSION)
版本很旧。并且,如果可能的话,用户告诉我更新其OpenSSL会非常复杂。因此,我所做的只是下载Python 2.7.15并解决了。