aspell-python 安装错误

4 投票
1 回答
2361 浏览
提问于 2025-04-28 02:09

我正在尝试安装aspell-python包,这个包是用来进行拼写纠正的。

但是在安装这个包的时候遇到了问题。

错误信息:

python setup.py install
running install
running build
running build_ext
building 'aspell' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c aspell.c -o build/temp.linux-i686-2.7/aspell.o
aspell.c:53:20: fatal error: aspell.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

GCC已经安装,版本是gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2

libaspell15也已经安装了。

暂无标签

1 个回答

10

需要安装sudo apt-get install libaspell-dev

撰写回答