For pip2.7, you can at first
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
, then
python2.7 get-pip.py --force-reinstall
to reinstall pip.