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


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

1、cd /Python-2.7.9 (下载包后的路径)
2、./configure
3、vim /Python-2.7.9/Modules/Setup
取消前面的注释
4、make&&make install

相关内容

    暂无相关文章