Как мне установить hunspell на windows10? - PullRequest
0 голосов
/ 19 октября 2019

Я новичок в python и мне нужна помощь с установкой hunspell на мои окна 10. Инструмент 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

Затем я попытался установить hunspell напрямую и получил следующее сообщение об ошибке:

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'

Я бы подумал, что я не первый, кто использует hunspell на Windows 10, но почему-то не могукажется, найти информацию, необходимую, чтобы заставить это работать.

...