As part of Django setup, if you find that pip is not installed, you can try to use the ensurepip module to install pip.

Execute the following command to setup pip

> python -m ensurepip

To upgrade pip,

> python -m pip install –upgrade pip