#Download get-pip.py provided by https://pip.pypa.io using the following command:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
#Run get-pip.py using the following command:
sudo python get-pip.py
#After you done installing, run this command to check if pip is installed.
pip --version
#Remove get-pip.py file after installing pip.
rm get-pip.py
sudo easy_install pip
python -m ensurepip --upgrade