我正在尝试安装aspell for Python3(在MacOS X 10.11上),并且在使用pip和手动安装程序(通过克隆git repo)时遇到了一个问题(同一个问题)。我已经使用MacPorts (sudo port install aspell)以及英语字典(sudo port install aspell-dict-en)安装了aspell。
错误很明显(找不到aspell.h),但是我不知道如何修复它。
任何帮助都将不胜感激。
$ sudo python3 setup.3.py build
running build
running build_ext
building 'aspell' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pipe -Os -I/opt/local/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c aspell.c -o build/temp.macosx-10.11-x86_64-3.5/aspell.o
aspell.c:53:10: fatal error: 'aspell.h' file not found
#include <aspell.h>
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1https://stackoverflow.com/questions/38052604
复制相似问题