感觉太坑啦,记录一下
1. 解决方法如下
yum -y install readline-devel # 如果失败 使用下面安装命令
# yum -y install patch readline-devel
pip3 install gnureadline
# 不要使用这个命令,结果可能导致 Python 崩溃 “sudo pip3 install readline”
2. 如果不幸 安装readline模块后,Python 崩溃了
- 卸载readline:
pip3 uninstall readline
- 安装gnureadline:
pip3 install gnureadline
https://stackoverflow.com/questions/43013060/python-3-6-1-crashed-after-readline-module-installed