Pytesseract in rosject

Hi there, I was trying to use pytesseract in my rosject and it gave me this error

Traceback (most recent call last):
File “”, line 7, in
from pytesseract import image_to_string
File “/home/user/.local/lib/python2.7/site-packages/pytesseract/”, line 2, in
from .pytesseract import ALTONotSupported
File “/home/user/.local/lib/python2.7/site-packages/pytesseract/”, line 89
f"{tesseract_cmd} is not installed or it’s not in your PATH."

I made sure I downloaded tesseract-ocr using
sudo apt update
sudo apt install tesseract-ocr

and it work perfectly when I use command line to call tesseract.

I was wondering if anyone could help with using pytesseract to use tesseract-ocr in python?

Thanks in advance.


Please follow this thread to see if between all the comunity we can resolve this issue: