ImportError: The 'enchant' C library was not found. Please install it via your OS package manager, or use a pre-built binary wheel from PyPI

Question:

The question is why I see the error message in the title when trying to import enchant. I am using Win64.

Asked By: 1man

||

Answers:

I found the answer in this GitHub page.

In a nutshell, they have not shipped a wheel for the win_amd64 platform yet.

Answered By: 1man

On Ubuntu, run sudo apt-get install libenchant1c2a

Answered By: aralar

For me, the problem I ran into was that I had an old version of pip. I installed the latest version and was able to download the pyenchant library.

pip install -U pip

Answered By: MichaelGofron

For amazon ubuntu instance use.

yum install enchant 

and then

pip install pyenchant
Answered By: Chetan Kabra

On Windows x64 I’ve solved this problem as follows:

  • Click link https://pypi.org/project/pyenchant/#files and download pyenchant-2.0.0.win32.exe
  • Launch it and while installing it using the installation wizard you must specify your python interpreter location which in my case is:

C:UsersAsusAppDataLocalProgramsPythonPython36python.exe

Important:İf you use python32 interpreter you must specify this location:

C:UsersAsusAppDataLocalProgramsPythonPython36-32python.exe

if you use python 3.5 interpreter version your location may be like this:

C:UsersAsusAppDataLocalProgramsPythonPython35python.exe

and finish the installation. Pip commands will work now for other dependency packages.

Answered By: Ottoman Empire

Resolved: On Win7-64 I ran

pip3 install pyenchant==1.6.6

which seems to be the latest version of PyEnchant that still shipped with Win-64 binaries. Newer versions did not install for me, but this one did.

Answered By: Art

On MacOS, you can install it via brew:

brew install enchant
pip install pyenchant
Answered By: dopexxx

I have fix the bugs on the colab.

!apt update
!apt install enchant –fix-missing

After fixing the missing files, you could run the enchant.

Answered By: Jackson

To run with docker on AWS:

  1. With apt-get:
sudo apt-get update
sudo apt-get -y install enchant-2
  1. With apt:
sudo apt update
sudo apt -y install enchant-2

Thank you

Answered By: Arpit-Gole