Issue
I have made a code using pytesseract and whenever I run it, I get this error:
TesseractNotFoundError: tesseract is not installed or it's not in your path
I have installed tesseract using HomeBrew and also pip
installed it.
Solution
If installed with Homebrew, it will be located in /usr/local/bin/tesseract by default. To verify this, run which tesseract
in the terminal as Dmitrrii Z. mentioned.
If it's there, you can set it up in your python environment by adding the following line to your python script, after importing the library:
pytesseract.pytesseract.tesseract_cmd = r'/usr/local/bin/tesseract'
Answered By - James Budarz
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.