hunspell python包(通过pip)的安装失败,并显示以下错误:
hunspell.c:21:22: fatal error: hunspell.h: No such file or directory
#include <hunspell.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1你知道该怎么解决这个问题吗?
发布于 2019-03-26 15:59:22
尝试:
sudo apt-get install libhunspell-dev
pip install hunspell在同一主题中推荐的...as (由John D提供):https://github.com/blatinier/pyhunspell/issues/22
我不能安装'hunspell-dev',但我可以安装libhunspell-dev。
发布于 2016-12-11 02:15:06
尝试使用sudo apt-get install hunspell-dev,然后再次尝试安装hunspell (或pyhunspell)
这个问题在pyhuspell的github页面上的一个问题中被引用了:https://github.com/blatinier/pyhunspell/issues/22
发布于 2019-09-27 23:00:41
这对我很有效
sudo apt-get install libhunspell-dev
python3 -m pip install hunspell或者使用这个
https://stackoverflow.com/questions/41078678
复制相似问题