① yum -y install ncurses-devel patch

② pip install readline

即可解决