如何安装 hunspell python 包? [英] How do I install hunspell python package?
本文介绍了如何安装 hunspell python 包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试使用 pip 时,pip install hunspell
When I try using pip, pip install hunspell
我收到一个错误:
错误:命令gcc"失败,退出状态为 1
error: command 'gcc' failed with exit status 1
根据这个页面,包的作者不知道如何使用conda环境安装:
According to this page, the author of the package does not know how to install it using conda environment:
https://github.com/blatinier/pyhunspell/issues/50
我宁愿继续使用 conda 而不是切换回常规"python 发行版.
I will prefer to continue with conda instead of switching back to "regular" python distribution.
推荐答案
Conda 环境也不例外.我使用了相同的命令,它的工作方式与常规"python 安装相同.
Conda environment is no different. I used the same commands and it worked same as "regular" python installation.
apt-get update
apt-get install python-dev
apt-get install libhunspell-dev
pip install hunspell
这篇关于如何安装 hunspell python 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文