0

I have installed hunspell 1.6 in python 3.5 environment using conda. When I try to import, it gives a import error.

ImportError: No module named 'hunspell'

Here is the screenshot attached.

Hunspell Error

Anee
  • 35
  • 1
  • 8

2 Answers2

0

Are you on Linux? In my case the installation of missing packages helped:

sudo apt install python-dev libhunspell-dev

Can you add more info like the output of

conda list hunspell
InLaw
  • 2,537
  • 2
  • 21
  • 33
0

I would suggest using the package CyHunspell which is regularly maintained:

pip install cyhunspell (currently not available via conda repositories)

(It appears that PyHunspell (pip install hunspell or conda install hunspell) is no longer maintained, last commit 2 years ago, and very hacky to get working.)

Requires gcc (on Ubuntu: sudo apt install build-essentials if you don't already have it).

Jean Monet
  • 2,075
  • 15
  • 25