直接把stackoverflow的答案给搬过来就可以了
Installing on Debian (Wheezy and newer) and Ubuntu (Trusty Tahr and newer) for Python 2.x
sudo apt-get install python-pip
Installing on Debian (Wheezy and newer) and Ubuntu (Trusty Tahr and newer) for Python 3.x
sudo apt-get install python3-pip
Installing pip on CentOS 7 for Python 2.x
sudo yum install python-setuptools
sudo easy_install pip
Installing pip on CentOS 7 for Python 3.x
sudo yum install python34-setuptools
sudo easy_install pip