1. Install Python
Download python2.7.10
# wget Https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
# TAR-ZXVF Python-2.7.10.tgz
# CD Python-2.7.10
#./configure--prefix=/usr/local/python
# Make && make install
Then test if Python is installed successfully
#/usr/local/python/bin/python2.7
Python 2.7.10 (Default, 26 2015, 22:48:01)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.
Establishing a soft connection
# MV/USR/BIN/PYTHON/USR/BIN/PYTHON26
# ln-s/usr/local/python/bin/python2.7/usr/bin/python
2. Installing Easy_install and Pip
Both Easy_install and Pip are used to download the relevant resource bundle for installing Python in a common repository pypi.
Install Easy_install First
# wget https://pypi.python.org/packages/source/e/ez_setup/ez_setup-0.9.tar.gz
# TAR-ZXVF Ez_setup-0.9.tar.gz
# CD ez_setup-0.9
# python ez_setup.py
# ln-s/usr/local/python/bin/easy_install/usr/bin/easy_install
Install PIP after installing Easy_install.
# wget https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz
# TAR-ZXVF Pip-7.1.2.tar.gz
# CD pip-7.1.2
# python setup.py Install
# ln-s/usr/local/python/bin/pip/usr/bin/pip
3. Installing Ipython
First, you have to install ReadLine
# pip Install ReadLine
Then install Ipython directly
# pip Install Ipython
With Pip and Easy_install, it's easy to install any module in the future.
CentOS Install python2.7 and install Easy_install,pip,ipython