http://www.jianshu.com/p/7a70af345823

 yum install readline*

然后重新编译python3.5