Hey everyone,
I've tried installing pyenchant a few times on Windows 7 with Python 2.7 but am having problems.
I'm running pip install pyenchant, which reports a successful installation. However, when I try to "import enchant", I get the following error:
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\IPython\core\interactiveshell.py", line 2883, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-be94a407aebb>", line 1, in <module>
import enchant
File "C:\Program Files (x86)\JetBrains\PyCharm 4.0.3\helpers\pydev\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Anaconda\lib\site-packages\enchant\__init__.py", line 92, in <module>
from enchant import _enchant as _e
File "C:\Program Files (x86)\JetBrains\PyCharm 4.0.3\helpers\pydev\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Anaconda\lib\site-packages\enchant\_enchant.py", line 143, in <module>
raise ImportError(msg)
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.
Isn't pip supposed to automatically install the C library?
I've also tried using easy_install. However, when I try to import enchant after that, I get a different error:
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\IPython\core\interactiveshell.py", line 2883, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-3-be94a407aebb>", line 1, in <module>
import enchant
File "C:\Program Files (x86)\JetBrains\PyCharm 4.0.3\helpers\pydev\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Anaconda\lib\site-packages\enchant\__init__.py", line 92, in <module>
from enchant import _enchant as _e
File "C:\Program Files (x86)\JetBrains\PyCharm 4.0.3\helpers\pydev\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Anaconda\lib\site-packages\enchant\_enchant.py", line 55, in <module>
from enchant import utils
ImportError: cannot import name utils
Any ideas? Thanks!