Pycharm udało instalowania pakietów z powodu SSL

głosy
0

Używam Windows 7 maszynę wirtualną i nie mogę dodać ctypes. Moja fizyczna maszyna działa Ubuntu, a internet jest WiFi-hotspot.

Wystąpił błąd:

Nie można pobrać URL https://pypi.org/simple/ctypes/ : Wystąpił problem potwierdzający certyfikat SSL: HTTPSConnectionPool (host = 'pypi.org', port = 443): Max prób przekroczenia z adresem URL: / proste / ctypes / (spowodowane przez SSLError (SSLError (1, '_ssl.c: 499: error: 1407742E: procedury SSL: SSL23_GET_SERVER_HELLO: TLSv1 wersja alert protokół'))) - omijając

Wyjście polecenia:

Zbieranie ctypes Nie można pobrać URL https://pypi.org/simple/ctypes/ : Wystąpił problem potwierdzający certyfikat SSL: HTTPSConnectionPool (host = 'pypi.org', port = 443): Max prób przekroczenia z adresem URL: / prosty / ctypes / (spowodowane przez SSLError (SSLError (1, '_ssl.c: 499: error: 1407742E: procedury SSL: SSL23_GET_SERVER_HELLO: alert TLSv1 wersja protokołu'))) - omijając nie można pobrać URL https: // PyPI. org / proste / pip / : Wystąpił problem potwierdzający certyfikat SSL: HTTPSConnectionPool (Host = 'pypi.org', Port = 443): Max prób przekroczenia adresem uRL: / proste / pip / (spowodowane przez SSLError (SSLError (1 '_ssl.c: 499: error: 1407742E: procedury SSL: SSL23_GET_SERVER_HELLO: TLSv1 wersja alert protokół'))) - omijając

C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:339: 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/advanced-usage.html#ssl-warnings
  SNIMissingWarning
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This 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-usage.html#ssl-warnings
  InsecurePlatformWarning
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/ctypes/
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This 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-usage.html#ssl-warnings
  InsecurePlatformWarning
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/ctypes/
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This 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-usage.html#ssl-warnings
  InsecurePlatformWarning
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/ctypes/
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This 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-usage.html#ssl-warnings
  InsecurePlatformWarning
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/ctypes/
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This 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-usage.html#ssl-warnings
  InsecurePlatformWarning
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/ctypes/
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This 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-usage.html#ssl-warnings
  InsecurePlatformWarning
  Could not find a version that satisfies the requirement ctypes (from versions: )
No matching distribution found for ctypes
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This 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-usage.html#ssl-warnings
  InsecurePlatformWarning
Utwórz 18/12/2018 o 11:14
źródło użytkownik
W innych językach...                            


1 odpowiedzi

głosy
0

Spróbuj uaktualnić pakiety zabezpieczeń urllib np poprzez pip.

pip install urllib3[secure]

To powinno cię poprowadzi: https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2

Twój urllib wydaje się próby uzyskania dostępu PyPI z TLSv1. Bardzo prawdopodobne, że nie pozwalają one, już.

Pobierz toolchain aktualne i powinno być w porządku.

aktualizacja:

Jak zrobić rzeczy z PIP w oknach w różnych wersjach jest już tutaj odpowiedzi: Jak zainstalować pip na Windows?

Odpowiedział 18/12/2018 o 12:56
źródło użytkownik

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more