python centos上出现上下键和退格键均为乱码

出现此问题主要是由于未安装readline,可以使用python自带的readline,具体设置方式为:

1、cd /Python-2.7.9 (下载包后的路径)
2、./configure
3、vim /Python-2.7.9/Modules/Setup

取消前面的注释
4、make&&make install

posted @ 2015-01-04 22:12  晓康勘探  阅读(522)  评论(0编辑  收藏  举报