IPython是Python 的原生交互式 shell 的增强版,可以完成许多不同寻常的任务,比如帮助实现并行化计算;主要使用它提供的交互性帮助,比如代码着色、改进了的命令行回调、制表符完成、宏功能以及改进了的交互式帮助。
安装python
[root@localhost ~]# tar -xvf Python-2.7..tgz
[root@localhost ~]# cd Python-2.7.
[root@localhost Python-2.7.]# ./configure --prefix=/usr/local/python27
[root@localhost Python-2.7.]# make && make install 安装ipython
[root@localhost ~]# cd ..
[root@localhost ~]# tar -xvf ipython-3.0..tar.gz
[root@localhost ~]# cd ipython-3.0.
[root@localhost ipython-3.0.]# /usr/local/python27/bin/python2. setup.py build
[root@localhost ipython-3.0.]# /usr/local/python27/bin/python2. setup.py install
......
changing mode of /usr/local/python27/bin/ipython2 to
changing mode of /usr/local/python27/bin/ipcluster2 to
changing mode of /usr/local/python27/bin/ipengine to
changing mode of /usr/local/python27/bin/iptest2 to
changing mode of /usr/local/python27/bin/iptest to
changing mode of /usr/local/python27/bin/ipython to
changing mode of /usr/local/python27/bin/ipcontroller to
changing mode of /usr/local/python27/bin/ipcontroller2 to
changing mode of /usr/local/python27/bin/ipengine2 to
changing mode of /usr/local/python27/bin/ipcluster to
running install_data
copying docs/man/ipython. -> /usr/local/python27/share/man/man1
copying docs/man/ipengine. -> /usr/local/python27/share/man/man1
copying docs/man/ipcontroller. -> /usr/local/python27/share/man/man1
copying docs/man/ipcluster. -> /usr/local/python27/share/man/man1
running install_egg_info
Writing /usr/local/python27/lib/python2./site-packages/ipython-3.0.-py2..egg-info 配置
[root@localhost ipython-3.0.]# ll /usr/local/python27/bin
total
-rwxr-xr-x. root root Oct : 2to3
-rwxr-xr-x. root root Oct : idle
-rwxr-xr-x. root root Oct : ipcluster
-rwxr-xr-x. root root Oct : ipcluster2
-rwxr-xr-x. root root Oct : ipcontroller
-rwxr-xr-x. root root Oct : ipcontroller2
-rwxr-xr-x. root root Oct : ipengine
-rwxr-xr-x. root root Oct : ipengine2
-rwxr-xr-x. root root Oct : iptest
-rwxr-xr-x. root root Oct : iptest2
-rwxr-xr-x. root root Oct : ipython
-rwxr-xr-x. root root Oct : ipython2
-rwxr-xr-x. root root Oct : pydoc
lrwxrwxrwx. root root Oct : python -> python2
lrwxrwxrwx. root root Oct : python2 -> python2.
-rwxr-xr-x. root root Oct : python2.
-rwxr-xr-x. root root Oct : python2.-config
lrwxrwxrwx. root root Oct : python2-config -> python2.-config
lrwxrwxrwx. root root Oct : python-config -> python2-config
-rwxr-xr-x. root root Oct : smtpd.py
[root@localhost ipython-3.0.]# ln -sv /usr/local/python27/bin/python2. /usr/bin/python27
`/usr/bin/python27' -> `/usr/local/python27/bin/python2.7'
[root@localhost ipython-3.0.]# ln -sv /usr/local/python27/bin/ipython /usr/bin/
`/usr/bin/ipython' -> `/usr/local/python27/bin/ipython'