天天看點

install python

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]: