Joh*_*n D 2 python pip hunspell
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
Run Code Online (Sandbox Code Playgroud)
知道该怎么做才能解决这个问题吗?
小智 5
尝试:
sudo apt-get install libhunspell-dev
pip install hunspell
Run Code Online (Sandbox Code Playgroud)
...在 pyhunspell 的 github 页面(由 John D 提供)的同一线程中推荐:https : //github.com/blatinier/pyhunspell/issues/22
我无法安装 'hunspell-dev',但我可以安装 libhunspell-dev。
| 归档时间: |
|
| 查看次数: |
2343 次 |
| 最近记录: |