Brief introduction:
Take a look at some of the installation steps for the Python environment package
1. Upgrade Python to 2.7.10 (default 2.6.6)
Shell > Yum-y Install epel-releaseshell > yum-y install gcc wget readline-devel zlib-devel openssl-develshell > wget Https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgzshell > Tar zxf python-2.7.10.tgzshell > CD Python-2.7.10;./configure--prefix=/usr/local/python2.7; make; Make Installshell > Mv/usr/bin/python/usr/bin/old_pythonshell > Ln-s/usr/local/python2.7/bin/python/usr/bin/ Pythonshell > Sed-i ' 1s/python/old_python/'/usr/bin/yumshell > Python-vpython 2.7.10
# # This is the implementation of the Python upgrade
# # Readline-devel This package to be installed beforehand, or the back of the Ipython does not support tab, arrow keys, etc., but also to recompile python
# # Zlib-devel This package setuptools will be used, openssl-devel this package pip will use
# #/usr/bin/yum file interpreter to change it or not to use Yum
2, Installation Setuptools
Shell > Wget https://pypi.python.org/packages/source/s/setuptools/setuptools-15.2.tar.gz#md5= A9028a9794fc7ae02320d32e2d7e12eeshell > Tar zxf setuptools-15.2.tar.gzshell > CD setuptools-15.2; Python setup.py installshell > Ln-s/usr/local/python2.7/bin/easy_install/usr/bin/easy_install
# # So Setuptools is also installed, if you do not install this package directly download PIP source package installation may be an error that can not find Setuptools
3. Install Pip
Shell > Wget https://pypi.python.org/packages/source/p/pip/pip-6.1.1.tar.gz#md5= 6b19e0a934d982a5a4b798e957cb6d45shell > Tar zxf pip-6.1.1.tar.gzshell > CD pip-6.1.1; Python setup.py installshell > Ln-s/usr/local/python2.7/bin/pip/usr/bin/pip
# # So PIP also installed, of course, with Easy_install can directly easy_install Pip, source code is just another way to install
4, Installation Ipython
Shell > Wget https://pypi.python.org/packages/source/i/ipython/ipython-3.1.0.tar.gz#md5= A749d90c16068687b0ec45a27e72ef8fshell > Tar zxf ipython-3.1.0.tar.gzshell > CD ipython-3.1.0; Python setup.py installshell > Ln-s/usr/local/python2.7/bin/ipython/usr/bin/ipython
# # So Ipython also installed, can also be installed by Pip install Ipython fast