python sehll 方向键 乱码 centos

centos下独立安装python2.7.6  shell环境下方向键乱码
gcc: readline/libreadline.a: No such file or directory
gcc: readline/libhistory.a: No such file or directory

解决:
只需要【公共python和虚拟环境的python都要安装】
yum -y install readline-devel
yum -y install patch
pip install readline


分享到: 微信 更多