4

我正在尝试安装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已安装

4

1 回答 1

10

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

于 2014-10-17T08:29:15.070 回答