Daoteng for three or four hours, all kinds of download
Start installation
The first thing to install is the zlib zlib-delve OpenSSL openssl-devel readline readline-delve
Yum Install zlib zlib-delve OpenSSL openssl-devel readline readline-delve -y
ReadLine and Readline-devel say no these two things, when entering the interpreter can not use the BACKSPACE key and left and right keys and so on
#开始安装python
Download the Python 2.7.8 installation package
download page https://www.python.org/downloads/
./configure
Make && make install
the Python installation directory path after installation is/usr/local/lib/python2.7
after the installation of the Python executable directory is/usr/local/bin
#开始安装setuptools, that's easy_install.
Download the Setuptools,easy_install installation package
download Page https://pypi.python.org/pypi/setuptools/page has a version, choose the version, I choose the 7.0 installation is not a problem, if you try other versions, the problem should be resolved by itself--| | | |
7.0 Https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.zip(Executive ez_ setup.py the address shown)
you can run ez_setup.py directly to install the installation package to download the above address
Decompression Run python2.7 setup.py install
after installation is complete, the easy_install executable path is easy_install-2.7 in/usr/local/bin
then install pip with easy_install-2.7
easy_install-2.7 Pip
Complete
CentOS python2.7 easy_install PIP installation