The Python Oracle

No matching distribution found for Django==2.2

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT


Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Bleepage Open

--

Chapters
00:00 No Matching Distribution Found For Django==2.2
01:06 Accepted Answer Score 16
01:36 Thank you

--

Full question
https://stackoverflow.com/questions/5567...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #django #ubuntu #digitalocean

#avk47



ACCEPTED ANSWER

Score 16


pip is usually the package manager for Python-2.x. Django-1.11 is the last version of Django that works with Python-2.x: Django-2.0, only works on Python-3.4 or higher, as is specified in the documentation on installing Django [Django-doc].

Therefore the package manager can not find Django-2.2, hence the error. You likely want to use Python-3.x anyway. So you can install the package with the package manager for Python-3.x: pip3:

pip3 install Django==2.2