'pip can't find django 3.x - ERROR: No matching distribution found for django==3.0.4
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.
Solution 1:[1]
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.
Solution 2:[2]
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
Solution 3:[3]
Python version you have installed is not supporting by that Django version.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Brian |
Solution 2 | |
Solution 3 | wowkin2 |