I failed to install django with pip, so a reminder of the solution

Content of this article

When I installed django, I got a suspicious error ``` There was a problem confirming the ssl certificate` ``, so I will write it as a reminder.

table of contents

  1. Environment
  2. Error details
  3. Solution

1. Environment

Windows 10 Python 3.7.8

2. Error details

When I tried to install django, I got the following dubious warning.

image.png

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/django/    
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/django/    
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /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 SSLErrERROR: Could not find a version that satisfies the requirement django (from versions: none)
ERROR: No matching distribution found for django

When I looked it up, there were some solutions, but I adopted the simplest method, "Update the Python version" for the time being.

3. Solution

Install the latest 3.8.4 (https://www.python.org/downloads/release/python-384/) on the Python site. Then

Collecting django
  Downloading Django-3.0.8-py3-none-any.whl (7.5 MB)
     |████████████████████████████████| 7.5 MB ... 
Collecting pytz
  Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
     |████████████████████████████████| 510 kB ... 
Collecting asgiref~=3.2
  Downloading asgiref-3.2.10-py3-none-any.whl (19 kB)
Collecting sqlparse>=0.2.2
  Downloading sqlparse-0.3.1-py2.py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB ... 
Installing collected packages: pytz, asgiref, sqlparse, django
Successfully installed asgiref-3.2.10 django-3.0.8 pytz-2020.1 sqlparse-0.3.1

Succeeded.

Recommended Posts

I failed to install django with pip, so a reminder of the solution
[Introduction to StyleGAN] I played with "The Life of a Man" ♬
I want to pip install with PythonAnywhere
I can't install the package with pip.
[Django] I made a field to enter the date with 4 digit numbers
I made a GAN with Keras, so I made a video of the learning process.
I got stuck trying to install various things with Mac El captain pip, so make a note
I tried to create a model with the sample of Amazon SageMaker Autopilot
I tried to create a table only with Django
I want to install a package of Php Redis
Transit to the update screen with the Django a tag
I wanted to know the number of lines in multiple files, so I tried to get it with a command
I tried to make something like a chatbot with the Seq2Seq model of TensorFlow
When I try to install mysqlclient with Django, I get error: command'gcc' failed with exit status 1.
I just wanted to extract the data of the desired date and time with Django
I tried to find the entropy of the image with python
I tried to find the average of the sequence with TensorFlow
I want to make a blog editor with django admin
Steps to install a Git cloned package locally with pip
I made a function to check the model of DCGAN
I want to install a package from requirements.txt with poetry
I can't log in to the admin page with Django3
I stumbled when I tried to install Basemap, so a memorandum
I want to know the features of Python and pip
Finding a solution to the N-Queen problem with a genetic algorithm (1)
[Python] I want to make a 3D scatter plot of the epicenter with Cartopy + Matplotlib!
I made a function to crop the image of python openCV, so please use it.
I wrote a doctest in "I tried to simulate the probability of a bingo game with Python"
I don't like to be frustrated with the release of Pokemon Go, so I made a script to detect the release and tweet it
How to install mysql-connector with pip3
I get an error when trying to install maec 4.0.1.0 with pip
I tried to create a list of prime numbers with python
Here's a brief summary of how to get started with Django
What to do if you get a UnicodeDecodeError with pip install
I wanted to solve the ABC164 A ~ D problem with Python
I tried to expand the size of the logical volume with LVM
I want to check the position of my face with OpenCV!
I tried to improve the efficiency of daily work with Python
I compared while reading the documentation to use Jinja2 with Django
Create a REST API to operate dynamodb with the Django REST Framework
I tried to make a mechanism of exclusive control with Go
I tried to unlock the entrance 2 lock sesame with a single push of the AWS IoT button
I tried to predict the number of domestically infected people of the new corona with a mathematical model
I tried the asynchronous server of Django 3.0
[Fabric] I was addicted to using boolean as an argument, so make a note of the countermeasures.
How to check the version of Django
PyPi debut I tried to pip install a library to check Japanese holidays
I was addicted to pip install mysqlclient
I got an SSL related error with pip install, so I solved it
Install by specifying the version with pip
I tried to make a thumbnail image of the best avoidance flag-chan! With RGB values ​​[Histogram] [Visualization]
I tried to get the authentication code of Qiita API with Python.
I want to sort a list in the order of other lists
I changed the jwt token generator to simplejwt with Django Rest Auth.
I want to express my feelings with the lyrics of Mr. Children
I tried to automatically extract the movements of PES players with software
A super introduction to Django by Python beginners! Part 2 I tried using the convenient functions of the template
I want to use complicated four arithmetic operations in the IF statement of the Django template! → Use a custom template
Install the python module with pip on a server without root privileges
I tried to send a registration completion email from Gmail with django.
I tried to analyze the negativeness of Nono Morikubo. [Compare with Posipa]