Install dependent environments
-
yum install Zlib-devel zlib openssl openssl-devel readline-devel (zlib installation setuptools will be used, there will be reported " runtimeerror:compression requires the (missing) zlib module "; OpenSSL is the PIP will be used, no report )
Install Python
wget HTTPS://WWW.PYTHON.ORG/FTP/PYTHON/2.7.8/PYTHON-2.7.8.TAR.XZ
TAR-XVF PYTHON-2.7.8.TAR.XZ
CD Python-2.7.8 && ./configure && make && make install
Mv/usr/bin/python/usr/bin/python_old
Ln-s/usr/local/bin/python2.7/usr/bin/python
Modify Yum
Vim/usr/bin/yum (Change the language environment of the first line to Python_old)
Install PIP
wget https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz#md5=3823d2343d9f3aaab21cf9c917710196
Tar XF pip-7.1.2.tar.gz && cd pip-7.1.2 && python setup.py install
Pip Install--upgrade pip
Pip-v
Installing Easy_install
wget HTTPS://PYPI.PYTHON.ORG/PACKAGES/SOURCE/S/SETUPTOOLS/SETUPTOOLS-18.2.TAR.GZ#MD5=52B4E48939EF311D7204F8FE940764F4
tar fxz setuptools-18.2.tar.gz && cd setuptools-18.2 && python setup.py install
centos6.5 update python2.7 affects Pip and Easy_install