- 问题
]# python3 Python 3.6.10 (default, Sep 30 2020, 11:38:05) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> aaa^H^H # 方向键与退格键无法使用
- 解决
]# yum -y install patch readline-devel ]# wget https://pypi.python.org/packages/source/r/readline/readline-6.2.4.1.tar.gz ]# tar -xf readline-6.2.4.1 ]# cd readline-6.2.4.1 ]# python3 setup.py install # 测试可以直接使用