• Register
0 votes
6.6k views

Problem :

I am getting following error:

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

6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I faced the same problem in the past.

I hope you have properly installed it and have also done 

pip install pytesseract.

If everything is correctly done then you should see that the path C:\Program Files (x86)\Tesseract-OCR where tesseract.exe is available.

Adding Path variable did not helped me So I added new variable with name tesseract in environment variables with a value of C:\Program Files (x86)\Tesseract-OCR\tesseract.exe.

Now typing tesseract in the command line should work by giving your usage informations. Now you can use pytesseract as such  

Note : Please restart your python kernel before running this.

import pytesseract
from PIL import Image

value=Image.open("text_image.png")
text = pytesseract.image_to_string(value, config='')    
print("text present in images:",text)

Further Readings :

https://github.com/tesseract-ocr/tesseract/issues/1799

9 7 4
38,600 points

Related questions

0 votes
1 answer 15 views
15 views
Problem : I am getting following error: pytesseract.pytesseract.tesseractnotfounderror: tesseract is not installed or it's not in your path
asked Mar 6 Wafa Abu Yousef 6.1k points
1 vote
1 answer 466 views
466 views
Problem: I was trying some code in python using pytesseract but it shows the error message: Pytesseract : TesseractNotFound Error: tesseract is not installed or it's not in your path I wrote the code: from PIL import image import pytesseract ig = image.open( myself.jpg ) ... ig, lang='eng') print(setup) I instaled pytesseract but it is not showing now and how can I fix this problem please help.
asked Apr 24, 2020 samhaz 5k points
0 votes
1 answer 222 views
222 views
I am new to python programming language and I don;t know how to fix it. This is my code below : from PIL import image import pytesseract ig = image.open(“Horse.jpg”) text = pytesseract.image_to_string(ig, lang=’eng’) print(text)
asked Mar 8, 2020 sstones 830 points
0 votes
1 answer 307 views
307 views
Problem : When I try to run following command: python manage.py updatestats I get the error as below: “TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'” I am unable to figure out ... ) File "/Users/alecxe/project/Dev/project_files/project/main/management/commands/updatestats.py", line 34, in handle unique_visits=display_unique_visits(hostname),)
asked Jan 2, 2020 alecxe 7.5k points
0 votes
1 answer 2.5K views
2.5K views
Problem : I am facing the issue in passing a function as a parameter to another function as follows typeerror: int() argument must be a string, a bytes-like object or a number, not 'nonetype'
asked Nov 18, 2019 peterlaw 6.9k points
0 votes
1 answer 9 views
9 views
Problem: I'm writing some code to create an unsorted list but whenever I try to insert a list using the insert method I get the 'method' object is not subscriptable error. Not sure how to fix it. Thanks.
asked Mar 16 ummesalma 24.5k points
0 votes
1 answer 14 views
14 views
Problem: have multiple files that I need to load so I'm using a dict to shorten things. When I run I get a TypeError: 'type' object is not subscriptable
asked Mar 16 ummesalma 24.5k points
0 votes
1 answer 1 view
1 view
Problem: I am getting this error please help: Typeerror: 'zip' object is not subscriptable
asked Mar 16 ummesalma 24.5k points
0 votes
1 answer 8 views
8 views
Problem: after upgrading to 3.5, I'm getting the: TypeError: a bytes-like object is required, not 'str'
asked Mar 16 ummesalma 24.5k points
0 votes
1 answer 5 views
5 views
Problem: Please help me … how can I solve it? valueerror: err must be [ scalar | n, nx1 or 2xn array-like ]
asked Mar 31 Ifra 24.4k points