无法在Fedora 22上安装Python库gnureadline

时间:2015-06-08 10:24:37

标签: python pip fedora

在Fedora 22上,pip install gnureadline失败并显示错误:

/usr/bin/ld: cannot find -lncurses

collect2: error: ld returned 1 exit status

error: command 'gcc' failed with exit status 1

2 个答案:

答案 0 :(得分:0)

您必须先从软件包控件中安装gnureadline二进制文件:

sudo yum install readline-devel

答案 1 :(得分:0)

yum install readline-devel

之后工作

如果已经安装了libxml-devellibxlst-develpython-devel