ImportError: The ‘enchant’ C library was not found and maybe needs to be installed

When trying to deploy my app which has pyenchant in its requirements I get the following error.

ImportError: The 'enchant' C library was not found and maybe needs to be installed.
See  https://pyenchant.github.io/pyenchant/install.html
for details

Is it possible to install the enchant package inside of streamlit cloud?

Thank You

Hey @foersterrobert

Seems like you are missing the python-enchant package installation.
Can you create a file named packages.txt and add python-enchant to it?
Please revert if this doesn’t fix the error.

Best
Kanak

python3-enchant inside of my packages.txt file did the job for me. Thank you so much. :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.