I want to install PyEnchant for spell checking and it requires enchant installed on my machine. But all the .exe files I could find were for win32 systems. Is there any other way to install it on Windows 64-bit machine?
Unfortunately pyenchant binaries via pip are not available for all platforms, most notably missing is Windows 64bit Python. The issue is 3 years old so a solution doesn't seem to be imminent.
The PyEnchant package is available on pypi. You can install it with pip as usual. However, to work properly, PyEnchant needs to: The way to achieve this depends on the platform you are using: The quickest way is to install libenchant using pkg (8): The quickest way is to install libenchant using the package manager of your current distribution.
On FreeBSD, Linux, and macOS ,this can be done by installing the hunspell-de or the de-hunspell package. On Windows, if you have installed PyEnchant from a wheel, you can download the hunspell dictionary files you need (both the .dic and .aff extensions) and put them inside /path/to/enchant/data/mingw<bits>/enchant/share/hunspell.
The problem is that enchant package changed its name to enchant-2. Due to that pyenchant doesn't discover C lib because arch linux's name of the package is not in the list of possible names. This issue was reported here pyenchant/pyenchant#125 but pyenchant owner doesn't maintain it anymore and is not going to address it.
Currently there is no 64-bit version of Enchant.
PyEnchant can do your spelling check under Python 32 bit - if you have to use 64 bit Python then you will need to build Enchant and PyEnchant for 64 bit and resolve any issues yourself. This isn't trivial unfortunately.
Note that 32 bit Python works fine, for most usages, on 64 bit machines and in general more libraries are supported.
For installing on Python 2.7 (32 bit) all you should need to do is:
pip install -U pyenchant
If you are having problems after this the next step is to uninstall and reinstall:
pip uninstall pyenchant pip install -U pyenchant
Hope this helps!
According to information here https://github.com/rfk/pyenchant enchant and pyenchant are no longer maintained. Sad.
People recommend another project instead: https://github.com/barrust/pyspellchecker
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With