Pytesseract.pytesseract.tesseractnotfounderror: tesseract is not installed or it’s not in your path.

In this article let’s discuss about Pytesseract.pytesseract.tesseractnotfounderror: tesseract is not installed or it’s not in your path. . Let’s go through the following methods without any delay.

Method 1:

#1. Install tesseract using windows installer available at: https://github.com/UB-Mannheim/tesseract/wiki

#2. Note the tesseract path from the installation.Default installation path at the time the time of this edit was: C:\Users\USER\AppData\Local\Tesseract-OCR. It may change so please check the installation path.

#3. pip install pytesseract

#4. Set the tesseract path in the script before calling image_to_string:

pytesseract.pytesseract.tesseract_cmd = r'C:\Users\USER\AppData\Local\Tesseract-OCR\tesseract.exe'

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!

Method 2 :

sudo apt update
sudo apt install tesseract-ocr
sudo apt install libtesseract-dev

Hope the above solution works.

Realted Posts : How to install bootstrap laravel 8