安装python
tar -xjvf Python-2.7.tar.bz2
cd Python-2.7
./configure --prefix=/usr/local/python-2.7
make
make install
----------------------------------------------
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-20.3.1.tar.gz
tar -xvf setuptools-20.3.1.tar.gz
cd setuptools-20.3.1
ls
python2.7 setup.py install –prefix=/usr/local/python-2.7
python2.7 setup.py install --prefix=/usr/local/python-2.7
cd ..
wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-8.0.1.tar.gz
tar -xvf pip-8.0.1.tar.gz
cd pip-8.0.1
python2.7 setup.py install --prefix=/usr/local/python-2.7
ln -sv /usr/local/python-2.7/bin/pip2.7 /usr/bin/pip2.
-------------------------------------------