這個問題一般是因爲升級到python2.7後執行pip產生的,解決方案是從新在python2.7環境中安裝pip,步驟以下:python
系統:centos7(建議用centos7,6的話須要升級的庫太多,glibc也得升級,升級很差就蝦米了)centos
1.安裝distributepython2.7
wget https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip --no-check-certificate
unzip distribute-0.7.3.zip
cd distribute-0.7.3
python setup.py installide
2.安裝setuptool
https://pypi.python.org/pypi/setuptools 下載最新版centos7
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-12.0.3.tar.gz#md5=f07e4b0f4c1c9368fcd980d888b29a65
tar -zxvf setuptools-12.0.3.tar.gz
cd setuptools-12.0.3
python setup.py installip
3.安裝pip
easy_install pipmd5
4.若是安裝pip過程當中報ImportError: No module named extern異常get
https://pypi.python.org/pypi/extern 下載最新extern安裝後再次嘗試便可it