The Python Oracle

No matching distribution found for Django==2.2

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Melt

--

Chapters
00:00 Question
01:21 Accepted answer (Score 16)
02:05 Thank you

--

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

Accepted answer links:
[documentation on installing Django [Django-doc]]: https://docs.djangoproject.com/en/dev/fa...

--

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