gpt4 book ai didi

python - 安装 pylinkgrammar 时缺少文件

转载 作者:太空狗 更新时间:2023-10-29 20:15:56 28 4
gpt4 key购买 nike

http://pypi.python.org/pypi/pylinkgrammar

我在尝试安装 pylinkgrammar 时遇到错误:

Running setup.py egg_info for package pylinkgrammar

Installing collected packages: pylinkgrammar
Running setup.py install for pylinkgrammar
...
running build_ext

building 'pylinkgrammar/_clinkgrammar' extension

swigging pylinkgrammar/link_grammar.i to pylinkgrammar/link_grammar_wrap.c

swig -python -o pylinkgrammar/link_grammar_wrap.c pylinkgrammar/link_grammar.i

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c pylinkgrammar/link_grammar_wrap.c -o build/temp.linux-x86_64-2.7/pylinkgrammar/link_grammar_wrap.o

pylinkgrammar/link_grammar_wrap.c:2973:40: fatal error: link-grammar/link-includes.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

最佳答案

这对我有用:

sudo apt-get install liblink-grammar4-dev

关于python - 安装 pylinkgrammar 时缺少文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14659118/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com