如何安装 hunspell python 包?
How do I install hunspell python package?
当我尝试使用 pip 时,
pip 安装 hunspell
我收到一个错误:
error: command 'gcc' failed with exit status 1
根据这个页面,包的作者不知道如何使用conda环境安装它:
https://github.com/blatinier/pyhunspell/issues/50
我宁愿继续使用 conda 而不是切换回 "regular" python 发行版。
Conda 环境也不例外。我使用了相同的命令,它的工作方式与 "regular" python 安装相同。
apt-get update
apt-get install python-dev
apt-get install libhunspell-dev
pip install hunspell
要获得 gcc
,在 Ubuntu:
sudo apt install build-essentials
我建议使用定期维护的包 CyHunspell:
pip install cyhunspell
(目前无法通过 conda 存储库获得)
PyHunspell(pip install hunspell
或 conda install hunspell
)似乎不再维护,最后一次提交是在 2 年前,并且很难开始工作。
当我尝试使用 pip 时, pip 安装 hunspell
我收到一个错误:
error: command 'gcc' failed with exit status 1
根据这个页面,包的作者不知道如何使用conda环境安装它:
https://github.com/blatinier/pyhunspell/issues/50
我宁愿继续使用 conda 而不是切换回 "regular" python 发行版。
Conda 环境也不例外。我使用了相同的命令,它的工作方式与 "regular" python 安装相同。
apt-get update
apt-get install python-dev
apt-get install libhunspell-dev
pip install hunspell
要获得 gcc
,在 Ubuntu:
sudo apt install build-essentials
我建议使用定期维护的包 CyHunspell:
pip install cyhunspell
(目前无法通过 conda 存储库获得)
PyHunspell(pip install hunspell
或 conda install hunspell
)似乎不再维护,最后一次提交是在 2 年前,并且很难开始工作。