如何安装hunspell python软件包? [英] How do I install hunspell python package?

查看:138
本文介绍了如何安装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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆