pip can't find django 3.x – ERROR: No matching distribution found for django==3.0.4

Question:

When I run:

pip3 install django==3.0.5

I get the error

ERROR: Could not find a version that satisfies the requirement django==3.0.5 (from versions: 1.1.3, ... 2.2.11, 2.2.12) ERROR: No matching distribution found for django==3.0.4

I need to update some references somewhere, but I am not sure how. Plz Help.

Answers:

You got the version wrong… The latest official version is 3.0.5. Do instead

pip install Django==3.0.5

Read more about it here.


Update

After the new comments was able to se you’re using Python 3.5. thing is, according to the documentation, for to use Django version 3.0.x one needs Python version 3.6, 3.7 or 3.8.

So, as a Linux user and assuming you can simply update to a newer version, you can use the terminal with the following commands to get a newer version of Python (for instances, 3.7.0 version)

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python3.7
Answered By: Tiago Martins Peres

As noted in the comments, Django 3.x is only available for Python 3.6 or greater. If you attempt to install Django 3 while using an older version of Python (e.g. Python 3.5 in the case of the OP), pip will be unable to find a matching package.

The solution is to simply upgrade to a more modern version of Python.

Answered By: Brian61354270

Python version you have installed is not supporting by that Django version.

Answered By: wowkin2
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.