python 安装readline报错

由于python的命令补全需要使用到readline模块,在安装readline模式时,提示如下错误:

/usr/bin/ld: cannot find -lncurses

collect2: ld returned 1 exit status

error: command 'gcc' failed with exit status 1


解决方法:

yum install -y ncurses-devel


你可能感兴趣的:(readline,-lncourses)