I am deploying a django app on a digital ocean droplet server that I developed using Django version 2.0.
Using Putty to SSH into my ubuntu server, I try to upgrade using
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