天天看點

centos6.2下安裝ipython出現gcc: readline/libreadline.a報錯

ipython這個工具非常好用,不過在linux下安裝的時候卻報了下面2個錯。(環境是centos6.2,python2.7)

gcc: readline/libreadline.a: No such file or directory

gcc: readline/libhistory.a: No such file or directory

解決:

隻需要

yum -y install readline-devel

yum -y install patch

pip install ipython

即可