Issue
I'm kind of new to python and still learning. I've just installed my first package via pip on windows. And went with pytesseract. Now I'm having a ModuleNotFoundError: No Module Named 'pytesseract'.
I've tried alot of the suggestions I've been able to find, like updating pip and reinstalling the tesseract package, changing the tesseract_cmd path to where the tesseract.exe file is located, and having the path and the Var in the test code I'm working on, restarting the kernal and the pc. But no matter what I do I cant seem to get this to work.
Any suggestions?
Update ************
I had to install miniconda and install pytesseract in that to get the error to disapear, apparently it got something to do with my choise of IDE (Spyder).
Now it just wont take the image.
**** UDATE **** So @MrBlue6 aided me in this and was a great help.
As you might be able to tell I tried getting this to work through both PIP and Miniconda. I dont know if it is a IDE issue, but I was unable to get either way to work on my chosen IDE Spyder. How ever, when I used the path to the windows installer @MrBlue6 supplied me with, and tinkering abit with the code and the path, I got it running and working.
Solution
It seems you are giving the wrong path. You must give the path of the tesseract.exe file not the tesseract library.
tesseract_cmd = r"C:\Users\name\AppData\Local\Programs\Tesseract-OCR11\tesseract.exe"
The above is the default location. If you have changed the install location, locate the exe file and simply give the path to tesseract_cmd.
Answered By - mrblue6
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.