PyCharm n'a pas l'installation de paquets en raison de SSL

voix
0

J'utilise la machine virtuelle Windows 7 et je ne peux pas ajouter ctypes. Ma machine physique fonctionne Ubuntu et la connexion Internet est une connexion Wi-Fi hotspot.

Erreur est survenue:

Impossible de récupérer l' URL https://pypi.org/simple/ctypes/ : Il y avait un problème confirmant le certificat ssl: HTTPSConnectionPool (host = 'pypi.org', port = 443): Max retries dépassé avec url: / simple , / ctypes / (Causée par SSLError (SSLError (1, '_ssl.c: 499: erreur: 1407742E: routines SSL: SSL23_GET_SERVER_HELLO: TLSv1 alerte version du protocole),)) - sauter

Sortie de la commande:

Collecte ctypes Impossible de récupérer l' URL https://pypi.org/simple/ctypes/ : Il y avait un problème confirmant le certificat ssl: HTTPSConnectionPool (host = 'pypi.org', port = 443): Max retries dépassé avec url: / simples / ctypes / (causée par SSLError (SSLError (1, '_ssl.c: 499: erreur: 1407742E: routines SSL: SSL23_GET_SERVER_HELLO: TLSv1 alerte version du protocole'),)) - sauter Impossible de récupérer l' URL https: // pypi. org / simples / pip / : Il y avait un problème confirmant le certificat ssl: HTTPSConnectionPool (host = 'pypi.org', port = 443): retries Max dépassé avec url: / simple , / pip / (causé par SSLError (SSLError (1 , '_ssl.c: 499: erreur: 1407742E: routines SSL: SSL23_GET_SERVER_HELLO: TLSv1 alerte version du protocole'),)) - sauter

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
Créé 18/12/2018 à 11:14
source utilisateur
Dans d'autres langues...                            


1 réponses

voix
0

Essayez de mettre à jour vos paquets de sécurité urllib par exemple via pip.

pip install urllib3[secure]

Cela devrait vous guider: https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2

Votre urllib semble essayer d'accéder pypi avec TLSv1. Très probable qu'ils ne vous permettent pas, plus.

Obtenez votre toolchain à jour et vous devriez être bien.

mettre à jour:

Comment faire des choses avec pip sur les fenêtres en différentes versions déjà répondu ici: Comment puis-je installer pip sur Windows?

Créé 18/12/2018 à 12:56
source utilisateur

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