Installation django

Fermé
cylia2015 Messages postés 39 Date d'inscription mardi 10 juillet 2018 Statut Membre Dernière intervention 8 janvier 2024 - Modifié le 29 juin 2022 à 16:29
mamiemando Messages postés 33166 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 2 juillet 2024 - 29 juin 2022 à 16:30
Bonjour,

J'ai un problème dans l'installation de
django
, voici le message d'erreur qui s'affiche:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/django/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/django/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/django/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/django/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/django/
Could not fetch URL https://pypi.org/simple/django/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/django/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))) - skipping
ERROR: Could not find a version that satisfies the requirement django (from versions: none)
ERROR: No matching distribution found for django
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))) - skipping


Veuillez m'aider s'il vous plaît,
Merci d'avance



Configuration: Configuration: Windows / Chrome 102.0.0.0

2 réponses

Jessy_lg27 Messages postés 12 Date d'inscription jeudi 5 août 2021 Statut Membre Dernière intervention 13 novembre 2022 1
Modifié le 27 juin 2022 à 18:21
Bonjour,
Avez-vous été voir sur la documentation
https://docs.djangoproject.com/fr/4.0/topics/install/

Bonne fin de journée
0
mamiemando Messages postés 33166 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 2 juillet 2024 7 761
Modifié le 29 juin 2022 à 16:32
Bonjour,

Le certificat SSL est auto signé dans ton cas, il faut donc au choix (par niveau de propreté décroissant) :
  • soit le remplacer par un "vrai" certificat (voir e.g.
    certbot
    ) ;
  • soit autoriser les certificats auto signés (voir cette discussion) ;
  • soit désactiver la vérification du certificat comme expliqué dans cette discussion.


Bonne chance
0