My project was running on Django 1.5.4 and I wanted to upgrade it. I did pip install -U -I django and now pip freeze shows Django 1.6.5 (clearly django
pip install -U -I django
pip freeze
with python 3.7 try:
sudo pip3 install --upgrade django==2.2.6
Because using the following:
pip3 install -U django
or with python 2.7 if you like to keep that old python:
pip install -U django
Only gives you the older version of django (1.11.xx instead of 2.2.6)