首页 > 代码库 > 编译安装python2.7.8和ipython

编译安装python2.7.8和ipython

1.为了可以使用backspace、delete等,安装readline-devel

    yum install readline-devel

2.下载python

3.编译python

    cd到对应目录

    ./configure --prefix=/isr/local/python27

    make && make install

4.为了可以使用ipython历史命令,安装SQlite

5.编译ipython

    cd到相应目录,使用刚才装好的python解释执行setup.py文件

    /usr/local/python27/bin/python setup.py build

    然后,

    /usr/local/python27/bin/python setup.py install

完毕!

编译安装python2.7.8和ipython