没有安装readline相关的模块 yum install readline readline-devel 再重新变异安装python就可以了 转载于:https://www.cnblogs.com/z-books/p/5287150.html