我对python很陌生,我需要帮助在我的windows 10上安装hun拼写,这个工具是PyCharm。
首先,我尝试安装CyHunspell:pip install CyHunspell
,并获得了以下错误消息:
RuntimeError: 'pkg-config' is not recognized as an internal or external command,operable program or batch file.
然后,我尝试安装PyHunspell,得到了以下错误消息:
ERROR: Could not find a version that satisfies the requirement PyHunspell (from versions: none)
ERROR: No matching distribution found for PyHunspell
然后,我尝试直接安装Hun拼写,并获得了以下错误消息:
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
在我的测试代码中:
import hunspell
结果:
spellchecker = hunspell.HunSpell() failed with the following error msg:
AttributeError: module 'hunspell' has no attribute 'HunSpell'
我认为我并不是第一个在windows 10上使用拼写的人,但不知怎么的,我似乎找不到必要的信息来让它起作用。
发布于 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上进行了测试。
https://stackoverflow.com/questions/58458901
复制相似问题