首先下載並安裝setuptools:python
wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py sudo python ez_setup.py --insecure
再到python官網下載pip安裝包,解壓到某個位置,我這裏下載的是8.0.0版本,而後就能夠安裝了:nginx
wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
tar -xf pip-9.0.1.tar.gz
cd pip-8.0.0 sudo python setup.py install
ln -s /usr/local/python27/bin/pip /usr/bin/pip
簡單方式bootstrap
sudo easy_install pip 或者 wget https://bootstrap.pypa.io/get-pip.py python get-pip.py