Как установить hunspell на Windows 10?Python

Программы на Python
Anonymous
Как установить hunspell на Windows 10?

Сообщение Anonymous »

Я новичок в Python, и мне нужна помощь с установкой hunspell на мою Windows 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, но почему-то я не могу найти информацию, необходимую для того, чтобы это заработало.< /п>

Подробнее здесь: https://stackoverflow.com/questions/584 ... -windows10

Вернуться в «Python»