我一直在尝试这个:
$ pip3.5 install --upgrade praw
/usr/local/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: 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. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
Could not fetch URL https://pypi.python.org/simple/praw/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) - skipping
Requirement already up-to-date: praw in /usr/local/lib/python3.5/site-packages
Could not fetch URL https://pypi.python.org/simple/decorator/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) - skipping
Requirement already up-to-date: decorator<4.1,>=4.0.9 in /usr/local/lib/python3.5/site-packages (from praw)
Could not fetch URL https://pypi.python.org/simple/prawcore/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) - skipping
Requirement already up-to-date: prawcore<0.3,>=0.2.1 in /usr/local/lib/python3.5/site-packages (from praw)
Could not fetch URL https://pypi.python.org/simple/requests/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) - skipping
Requirement already up-to-date: requests>=2.3.0 in /usr/local/lib/python3.5/site-packages (from praw)
Could not fetch URL https://pypi.python.org/simple/six/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) - skipping
Requirement already up-to-date: six==1.10 in /usr/local/lib/python3.5/site-packages (from praw)
Could not fetch URL https://pypi.python.org/simple/update-checker/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) - skipping
Requirement already up-to-date: update_checker==0.11 in /usr/local/lib/python3.5/site-packages (from praw)
我检查了Pip是否是最近的:
来自/usr/local/lib/python3.5/site-packages(python 3.5)的pip 9.0.1
和Python:
Python 3.5.5
OpenSSL的:
OpenSSL 1.0.2o 2018年3月27日
已安装urllib:
要求已经满足:urllib3 [secure]在/usr/local/lib/python3.5/site-packages
我错过了什么导致此TLS v1错误?
我确实将Python从3.5.1升级到3.5.5,这可以解决它,因为它是从2018年开始的。