python centos 自带的版本是2.6.6,有些库不支持,决定编译安装python2.7
编译后,发现退格键不能用,查了半天发现是readline库没有安装,需要手动编译
yum -y install readline readline-devel*
重新编译python
./configure --prefix=/opt/python/ --with-readline
make && make install
这时候就发现退格键可以正常使用了。
转载于:https://blog.51cto.com/feifie/1589523