PyCharm fracasó debido a la instalación de paquetes de SSL

votos
0

Estoy utilizando Windows 7 máquina virtual y no puedo añadir ctypes. Mi máquina física corre Ubuntu y la conexión a Internet es una conexión Wi-Fi hotspot.

Ocurrió un error:

No se pudo obtener la URL https://pypi.org/simple/ctypes/ : Hubo un problema que confirma el certificado SSL: HTTPSConnectionPool (host = 'pypi.org', port = 443): Max reintentos supera con url: / sencillo / ctypes / (causada por SSLError (SSLError (1, '_ssl.c: 499: error: 1407742E: rutinas SSL: SSL23_GET_SERVER_HELLO: TLSv1 versión de protocolo de alerta'),)) - saltar

salida del comando:

Ctypes de recolección no se pudo obtener la URL https://pypi.org/simple/ctypes/ : Hubo un problema que confirma el certificado SSL: HTTPSConnectionPool (host = 'pypi.org', port = 443): Max reintentos supera con url: / sencilla / ctypes / (causada por SSLError (SSLError (1, '_ssl.c: 499: error: 1407742E: rutinas SSL: SSL23_GET_SERVER_HELLO: alerta TLSv1 versión del protocolo'),)) - saltar no se pudo obtener la URL https: // PyPI. org / sencillo / PIP / : Hubo un problema que confirma el certificado SSL: HTTPSConnectionPool (host = 'pypi.org', port = 443): Max reintentos supera con url: / sencillo / PIP / (causada por SSLError (SSLError (1 , '_ssl.c: 499: error: 1407742E: rutinas SSL: SSL23_GET_SERVER_HELLO: TLSv1 versión del protocolo de alerta'),)) - saltar

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
Publicado el 18/12/2018 a las 11:14
fuente por usuario
En otros idiomas...                            


1 respuestas

votos
0

Intente actualizar sus paquetes de seguridad urllib por ejemplo a través de pepita.

pip install urllib3[secure]

Esto debe guiarlo: https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2

Su urllib parece tratar de acceder PyPI con TLSv1. Es muy probable que no le permiten, nunca más.

Obtenga su cadena de herramientas hasta la fecha y que debe estar bien.

actualizar:

Cómo hacer cosas con pip en ventanas en diferentes versiones ya está contestada aquí: ¿Cómo se instala en Windows pip?

Respondida el 18/12/2018 a las 12:56
fuente por usuario

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