首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在windows10上安装hunspell?

如何在windows10上安装hunspell?
EN

Stack Overflow用户
提问于 2019-10-18 22:30:17
回答 1查看 6.2K关注 0票数 6

我对python很陌生,我需要帮助在我的windows 10上安装hun拼写,这个工具是PyCharm。

首先,我尝试安装CyHunspell:pip install CyHunspell,并获得了以下错误消息:

代码语言:javascript
运行
复制
RuntimeError: 'pkg-config' is not recognized as an internal or external command,operable program or batch file.

然后,我尝试安装PyHunspell,得到了以下错误消息:

代码语言:javascript
运行
复制
ERROR: Could not find a version that satisfies the requirement PyHunspell (from versions: none)
ERROR: No matching distribution found for PyHunspell

然后,我尝试直接安装Hun拼写,并获得了以下错误消息:

代码语言:javascript
运行
复制
hunspell.cpp
    hunspell.cpp(20): fatal error C1083: Cannot open include file: 'hunspell.hxx': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

在我的测试代码中:

代码语言:javascript
运行
复制
import hunspell

结果:

代码语言:javascript
运行
复制
spellchecker = hunspell.HunSpell() failed with the following error msg:
AttributeError: module 'hunspell' has no attribute 'HunSpell'

我认为我并不是第一个在windows 10上使用拼写的人,但不知怎么的,我似乎找不到必要的信息来让它起作用。

EN

回答 1

Stack Overflow用户

发布于 2020-05-31 14:27:17

GNU文档声明这里 (由我下划线):

EZWinPorts项目提供了许多最新版本的GNU和Unix软件的有用端口。这包括Emacs使用的所有可选库(映像库、libxml2、GnuTLS)、RCS、德州信息、man命令的克隆、Grep、xz、bzip2、bsdtar、ID Utils、Findutils、Hun拼写、Gawk、GNU、Groff、GDB。

您确实会在sourceforge上的文件清单 of EZWinPorts项目中找到Hun拼写。

解压缩后,您将在bin文件夹中找到可执行的hunspell.exe。不需要安装。该工具将在命令行上使用。您可能应该将其添加到Windows路径中。

在我的Windows 10 PC上进行了测试。

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58458901

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档