1、yum install -y python-setuptools.noarch     #安装setuptools工具

2、easy_install pip   

3、yum install gcc libffi-devel python-devel openssl-devel -y

4、pip install ipython


测试如下:

[root@biezz ~]# ipython

Python 2.7.5 (default, Nov  6 2016, 00:28:07) 

Type "copyright", "credits" or "license" for more information.


IPython 5.4.1 -- 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.


In [1]: