First, install Python2.7.8
Since Ipython only supports Python2.7.8 or later, so the need to install Python2.7.8
To the following address https://www.python.org/downloads/release/python-278/ Download Source Package Python-2.7.8.tgz
[Root @ CentOS_1 ~] # tar xf Python-2.7.8
2, unzip the file into the folder after Python-2.7.8, the compiler:
[Root @ centos_1 Python-2.7.8] # ./configure --prefix = / usr / local / python2.7
3, make install
[Root @ centos_1 Python-2.7.8] # make && make
Second, the installation Ipython
1, download Ipython
https:: //github.com/ipython/ipython/releases download Ipython source package ipython-3.0.0.tar.gz, the latest version is 3.0 from the URL.
2, extract the installation package
[Root @ centos_1 tmp] # tar zxvf ipython-3.0.0
3, install readline-devel package
Before compiling installation Ipython, sure you have installed readline-devel package. Otherwise, the installation is complete, IPython will not enter normal;
[Root @ centos_1 ~] # yum install readline-devel
3, compile and install using Python2.7.8
[Root @ centos_1 ipython-3.0.0] # /usr/local/python2.7/bin/python setup.py build
[Root @ centos_1 ipython-3.0.0] # /usr/local/python2.7/bin/python setup.py install
4. After the installation is complete, it will generate an executable file IPython Python2.7.8 in the bin directory, in order to facilitate the use of the IPython connected to the / usr / bin directory
[Root @ centos_1 bin] # ln -sf ipython / usr / bin / ipython
[Root @ centos_1 ~] # ipython
WARNING: IPython History requires SQLite, your history will not be saved
Python 2.7.8 (default, Mar 24 2015, 19:00:34)
Type "copyright", "credits" or "license" for more information.
IPython 3.0.0 - An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
% Quickref -> Quick reference.
help -> Python's own help system.
object -?> Details about 'object', use 'object ??' for extra details.