Tesseract isn't install in your PATH - Raspbian for Robots (dexter)

I’m using pytesseract to do some text recognitions in Raspbian for Robots of dexter industries.

I’ve installed tesseract as can be seen in the screenshot using sudo apt-get tesseract-ocr.

The tesseract-ocr version

>>> tesseract 3.04.01
 libgif 5.1.4 : libjpeg 6b (libjpeg-turbo 1.5.1) : libpng 1.6.28 : libtiff 4.0.8 : zlib 1.2.8 : libwebp 0.5.2 : libopenjp2 2.1.2

But pytesseract of python3 isn’t recognizing. and keep getting

Traceback (most recent call last):
  File "textRecognition.py", line 1, in <module>
    import pytesseract
  File "/home/pi/.local/lib/python3.5/site-packages/pytesseract/__init__.py", line 2, in <module>
    from .pytesseract import ALTONotSupported
  File "/home/pi/.local/lib/python3.5/site-packages/pytesseract/pytesseract.py", line 89
    f"{tesseract_cmd} is not installed or it's not in your PATH."

1 Like

IMHO, the obvious first line of attack is to look at your Python Path, since it believes that the pytesseract libraries are not shown there. Since it is provably installed, that’s the next thing to look for.

Additionally, depending on how you installed it - and the care taken by the package maintainer - it may not have been put in your python path.

Take a peek and let us know what you find.