Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install pyenchant on a Windows 64-bit machine

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?

like image 708
joe wong Avatar asked Jun 12 '16 06:06

joe wong


People also ask

Is it possible to run pyenchant on Windows 64 bit?

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.

How to install pyenchant on PyPI?

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.

How do I add Hunspell to pyenchant?

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.

Why doesn't pyenchant detect C lib in my library?

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.


2 Answers

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!

like image 67
Indigo8 Avatar answered Oct 09 '22 03:10

Indigo8


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

like image 40
user3764597 Avatar answered Oct 09 '22 03:10

user3764597