• Register
0 votes
7.2k views

Problem :

I am getting following error:

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

6.9k 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

38.6k points

Related questions

0 votes
1 answer 66 views
66 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 768 views
768 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 305 views
305 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 66 views
66 views
Problem: Please give me an answer to this > Error: make sure you have a working qt qmake on your path.
asked May 9 Florina Gulnar 106k points
0 votes
1 answer 31 views
31 views
Problem: Is there someone who can help : !_src.empty() in function 'cv::cvtcolor'?
asked Jun 3 Rada Gracelynn 104k points
0 votes
1 answer 93 views
93 views
Problem: import numpy as np n=int(input()) R = n C = n p,s=0,0 print("Enter the entries in a single line (separated by space): ") entries = list(map(int, input().split())) matrix = np.array(entries).reshape(R, C) print(matrix) for i in range(R): for j in range(C): if i==j: p=p+matrix[i][j] if i+j==n-1: s=s+matrix[i][j] s1=p-s print(s1)
asked Apr 24 munim01 21k points
0 votes
1 answer 7 views
7 views
Problem: Is it possible to make this work : Failed to launch the python process, please validate the path 'python'?
asked Jun 18 Nahil 128k points
0 votes
1 answer 785 views
785 views
Problem : I have just downloaded Python and Visual Studio & trying to test the debugging feature for a simple "Hello World" script but I'm receiving this error: failed to launch the python process, please validate the path 'python' Could someone please tell me how to fix this?
asked Oct 21, 2019 peterlaw 6.9k points
0 votes
1 answer 4 views
4 views
Problem: What should I do if I can't find a solution anywhere : Int() argument must be a string or a number, not 'list'?
asked Jun 25 Mezbah 130k points
0 votes
1 answer 48 views
48 views
Problem: So, what precisely is the problem here : Int() argument must be a string, a bytes-like object or a number, not 'list'?
asked Jun 15 Mezbah 130k points