When I am trying to install pytesseract in anaconda prompt. It says " package already installed
". But when I run command " import pytesseract
" error show " module is not found
"
Did you install PIL/pillow alongside pytesseract? According to this webpage , PIL is required for pytesseract to work.
To install PIL (assuming you configured python normally when you installed it), open up command prompt as administrator and type: " python -m pip install pillow " (without quotes)
If you already have PIL installed:
Is the pytesseract module in the same directory/folder as the python.exe interpreter you are using? If not, is it in the same directory/folder as the program you are trying to import it into?
You should either:
Drag a copy of pytesseract into the same folder as the python.exe interpreter you are using (your best bet)
Drag a copy of pytesseract into your program directory (probably your next best option)
or
Follow the instructions provided in one of the answers in this thread to import pytesseract from a remote directory (not ideal).
If my answer doesn't work for you, leave a comment and I can try and help further.
Cheers!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.