安装pip
1.下载
wget https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz --no-check-certificate
2.安装
tar xzvf pip-1.3.1.tar.gz cd pip-1.3.1 python setup.py install
报错ImportError: No module named setuptool
安装
wget https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg --no-check-certificate
sh setuptools-0.6c11-py2.7.egg
报错
zipimport.ZipImportError: can't decompress data; zlib not available
安装yum -y install zlib*
重新编译python修改配置文件Modules/Setup.dist去掉注释
#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
sh setuptools-0.6c11-py2.7.egg
python setup.py install
大功告成