The default installation of PIP for python2 is version 21. This version is no longer supported, so an error is reported when executing pip. You need to back up the PIP version and execute the following command
curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py
python get-pip.py
python -m pip install --upgrade "pip < 21.0"