pip install failing on python2
This is what you need to do
wget https://bootstrap.pypa.io/2.7/get-pip.py
python get-pip.py
The correct get-pip.py
file for python2 has been moved to https://bootstrap.pypa.io/pip/2.7/get-pip.py
PIP has dropped support for Python 2.7 in the result you are facing the above issue, so the only thing is to downgrade the version of pip.
only the following command worked for me...
sudo easy_install pip==20.3.4