install python
[root@localhost bin]# yum install readline readline-devel ncurses ncurses-devel -y
[root@localhost bin]# wget --no-check-certificate https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
[root@localhost bin]# wget --no-check-certificate https://github.com/ipython/ipython/releases/download/rel-2.1.0/ipython-2.1.0.tar.gz
[root@localhost bin]# tar fvxz Python-2.7.8.tgz
[root@localhost bin]# cd Python-2.7.8
[root@localhost bin]# ./configure --prefix=/usr/local/python27 && make && make install
[root@localhost bin]# tar fvxz ipython.tar.gz
[root@localhost bin]# cd ipython-2.1.0/
[root@localhost bin]# /usr/local/python27/bin/python2.7 setup.py build
[root@localhost bin]# /usr/local/python27/bin/python2.7 setup.py install
[root@localhost bin]# cd /usr/bin
[root@localhost bin]# ln -sv /usr/local/python27/bin/ipython .
[root@localhost bin]# ipython
WARNING: IPython History requires SQLite, your history will not be saved
Python 2.7.9 (default, Jan 30 2015, 00:13:35)
Type "copyright", "credits" or "license" for more information.
IPython 3.1.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.
In [1]:
原文地址:http://madland.blog.51cto.com/1059991/1651004