Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 720
1man Avatar asked Apr 01 '15 02:04

1man


5 Answers

On Ubuntu, run sudo apt-get install libenchant1c2a

like image 171
aralar Avatar answered Nov 06 '22 10:11

aralar


I found the answer in this GitHub page.

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

like image 13
1man Avatar answered Nov 06 '22 12:11

1man


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.

like image 13
Art Avatar answered Nov 06 '22 11:11

Art


For amazon ubuntu instance use.

yum install enchant 

and then

pip install pyenchant
like image 7
Chetan Kabra Avatar answered Nov 06 '22 12:11

Chetan Kabra


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

like image 3
MichaelGofron Avatar answered Nov 06 '22 10:11

MichaelGofron