我试图升级到IPython 2.0时打破了我的IPython设置。安装gnureadline
时安装失败。我最初有this problem,但我修复了它。现在我收到了这个错误:
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -Qunused-arguments -Qunused-arguments build/temp.macosx-10.9-intel-2.7/Modules/2.x/readline.o readline/libreadline.a readline/libhistory.a -lncurses -o build/lib.macosx-10.9-intel-2.7/gnureadline.so
clang: error: no such file or directory: 'readline/libreadline.a'
clang: error: no such file or directory: 'readline/libhistory.a'
error: command 'cc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools;__file__='/private/var/folders/jj/0w0dd3n16jq4g5579g6c7h040000gn/T/pip_build_root/gnureadline/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/jj/0w0dd3n16jq4g5579g6c7h040000gn/T/pip-iJITYv-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/var/folders/jj/0w0dd3n16jq4g5579g6c7h040000gn/T/pip_build_root/gnureadline
Storing complete log in /Users/mc/Library/Logs/pip.log
感谢您的帮助。
答案 0 :(得分:59)
sudo apt-get install libncurses5-dev
参考: Ipython no readline available and pip install readline error
答案 1 :(得分:8)
除上述内容外。 libffi
包为我排序。
sudo apt-get install libncurses5-dev libffi-dev
答案 2 :(得分:0)
在终端sudo apt-get install libncurses5-dev中安装,它工作正常,然后pip install gnureadline == 6.3.3
答案 3 :(得分:0)
对于Fedora用户:
dnf install ncurses-devel
答案 4 :(得分:0)
在OSX 10.14.5上-
brew install ncurses
然后
pip install gnureadline