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

我与影子孤独终老i 提交于 2019-12-03 07:01:34

问题


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


回答1:


I found the answer in this GitHub page.

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




回答2:


On Ubuntu, run sudo apt-get install libenchant1c2a




回答3:


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.




回答4:


For amazon ubuntu instance use.

yum install enchant 

and then

pip install pyenchant



回答5:


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




回答6:


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:\Users\Asus\AppData\Local\Programs\Python\Python36\python.exe

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

C:\Users\Asus\AppData\Local\Programs\Python\Python36-32\python.exe

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

C:\Users\Asus\AppData\Local\Programs\Python\Python35\python.exe

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



来源:https://stackoverflow.com/questions/29381919/importerror-the-enchant-c-library-was-not-found-please-install-it-via-your-o

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