“enchant C library not found” while installing pyenchant using pip on OSX

十年热恋 提交于 2019-12-04 03:30:45

You need to install enchant, which is a C library. You can use Homebrew, to do this kind of package management. Just enter:

brew install enchant

Before trying to pip install pyenchant and you should be fine.

Try this - It worked for me on Ubuntu.

sudo apt-get install libenchant1c2a

Try either sudo pip install or sudo easy install.

Kelvin N.

[nltk_data] Error loading enchant: Package 'enchant' not found in

No. if you get this problem, you are supposed to install it like this:

$ sudo easy_install pyenchant

it is not an nltk package, it is a package on its own.

sudo easy_install

sudo because MAC permissions are usually messed up

Try a pip install, an easy_install, and a brew.

Kelvin N.

You have to download the NLTK package. That is how you get Pyenchant running. But if your building a grammar checker, pyenchant is not advisable because it only grammar checks two words. You should consider building a grammar checker on your own by starting with an autocomplete word completion from here: How to code autocompletion in python?

For windows: download the required .exe file based on version from https://pypi.python.org/simple/pyenchant/ and pip install pyenchant

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!