Ask coding questions

← Back to all posts
Does repl.it support pytesseract???
TheLostProgramm

I am trying to use pytesseract but I get this error:

Does anyone know how to fix this?

Voters
TheLostProgramm
Comments
hotnewtop
19ecal

Because tesseract is actually an executable, you need to run these commands in the shell to install it

As well as a pip installation
This link is helpful
https://towardsdatascience.com/read-text-from-image-with-one-line-of-python-code-c22ede074cac

TheLostProgramm

@19ecal
Hi,
I get this as the output:

19ecal

@TheLostProgramm Try it without the sudos

TheLostProgramm

@19ecal
It didn't work...

19ecal

@TheLostProgramm PyTesseract is probably not supported on replit then

OldWizard209

Go to the shell and run this command:
pip install pytesseract
Also here is the official Python pytesseract documentation which will guide you with the installation. Lastly, you can also use the pip install <pacakge_name> to install any pacakge

TheLostProgramm

@OldWizard209
Hi, thanks for the reply. I have tried to use pip and I get this:

But the error still appears.

OldWizard209

try a different repl. Fork this one and run the command again and then run the program. @TheLostProgramm