1.安装 readline-devel
yum -y install readline-devel
2.重新源码编译python
进入python3源码安装包目录
./configure --prefix=/usr/local/python3
make && make install
1.安装 readline-devel
yum -y install readline-devel
2.重新源码编译python
进入python3源码安装包目录
./configure --prefix=/usr/local/python3
make && make install