Ошибка 'tlsv1 alert protocol version' в последних версиях Python / Pip - PullRequest
0 голосов
/ 30 мая 2018

Я пытался это сделать:

$ 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)

Я проверил, был ли Пип последним:

пип 9.0.1 из / usr / local / lib / python3.5 / site-packages (python 3.5)

И Python:

Python 3.5.5

OpenSSL:

OpenSSL 1.0.2o 27 марта 2018

urllib установлен:

Требование уже выполнено: urllib3 [безопасный] в / usr / local / lib / python3.5 / site-packages

Чего мне не хватает, что вызывает эту ошибку TLS v1?

Я обновил Python с 3.5.1 до 3.5.5, думая, что это решит проблему,как в 2018 году.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...