无法加载 Hunspell 包

Unable to load Hunspell package

我已经在 python 3.5 环境中使用 conda 安装了 hunspell 1.6。当我尝试导入时,出现导入错误。

ImportError: No module named 'hunspell'

附上截图。

Hunspell Error

你在 Linux 吗?在我的例子中,安装丢失的包有帮助:

sudo apt install python-dev libhunspell-dev

您能否添加更多信息,例如

的输出
conda list hunspell

我建议使用定期维护的包 CyHunspell

pip install cyhunspell(目前无法通过 conda 存储库获得)

(似乎 PyHunspellpip install hunspellconda install hunspell)不再维护,最后一次提交是在 2 年前,并且很难开始工作。)

需要 gcc(在 Ubuntu 上:sudo apt install build-essentials 如果您还没有)。