gpt4 book ai didi

通过 pip 安装 Python hunspell 包失败

转载 作者:行者123 更新时间:2023-12-05 01:45:38 26 4
gpt4 key购买 nike

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

知道如何解决这个问题吗?

最佳答案

尝试:

sudo apt-get install libhunspell-dev
pip install hunspell

...按照 pyhunspell 的 github 页面(由 John D 提供)中同一主题中的建议:https://github.com/blatinier/pyhunspell/issues/22

我无法安装“hunspell-dev”,但我可以安装 libhunspell-dev。

关于通过 pip 安装 Python hunspell 包失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41078678/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com