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
完毕!
原文地址:http://lbs1991.blog.51cto.com/9134853/1546960