The question is why I see the error message in the title when trying to import enchant. I am using Win64.
I found the answer in this GitHub page.
In a nutshell, they have not shipped a wheel for the win_amd64 platform yet.
On Ubuntu, run sudo apt-get install libenchant1c2a
sudo apt-get install python-enchant
–
Readability sudo apt-get install -y python3-enchant
worked for me. –
Trident I found the answer in this GitHub page.
In a nutshell, they have not shipped a wheel for the win_amd64 platform yet.
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.
For amazon ubuntu instance use.
yum install enchant
and then
pip install pyenchant
sudo apt-get install enchant
and then pip install pyenchant
–
Thump 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
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.
To run with docker on AWS:
- With
apt-get
:
sudo apt-get update
sudo apt-get -y install enchant-2
- With
apt
:
sudo apt update
sudo apt -y install enchant-2
Thank you
On MacOS, you can install it via brew
:
brew install enchant
pip install pyenchant
I have fix the bugs on the colab.
!apt update !apt install enchant --fix-missing
After fixing the missing files, you could run the enchant.
Steps to resolve are as-
- First check the operating system as below
import platform
os_type = platform.system()
print(f"Operating System Type: {os_type}")
- If it is Linux, Then take sudo update and follow next steps, for other operating system follow this page https://pyenchant.github.io/pyenchant/install.html
!sudo apt-get update
- Then check which libenchant version is in apt-cache
!apt-cache search libenchant
- Insall libenchant accordingly
!sudo apt-get install libenchant{cached_version}
Updated answer for Debian-based Linux distros (e.g. Ubuntu) as of May 2024
The package name for enchant
is now named "enchant-2
". If you're running into this issue on a Ubuntu, its flavors, or a similar Debian-based distro, ensure you have tried sudo apt-get install enchant-2
.
© 2022 - 2025 — McMap. All rights reserved.