from os import closerange
from PIL import Image
import pytesseract as tess
tess.pytesseract.tessetact_cmd = r'give your PATH TO TESSETACT.EXE'
image = r'complete path to image file'
text = tess.image_to_string(Image.open(image), lang="eng")
print(text)