簡體   English   中英

通過pip安裝gnureadline時出錯

[英]Error installing gnureadline via pip

我試圖升級到IPython 2.0時打破了我的IPython設置。 安裝gnureadline時安裝失敗。 我原本有這個問題,但我修復了它。 現在我收到這個錯誤:

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

謝謝你的幫助。

sudo apt-get install libncurses5-dev

參考: Ipython沒有可用的readline和pip install readline錯誤

除了以上。 libffi包為我整理出來。

sudo apt-get install libncurses5-dev libffi-dev

在終端sudo apt-get install libncurses5-dev中安裝,它工作正常,然后pip install gnureadline == 6.3.3

對於Fedora用戶:

dnf install ncurses-devel

在OSX 10.14.5上 -

brew install ncurses

然后

pip install gnureadline

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM