I got it resolved using pytesseract instead of using tesseract from terminal
-- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/11f43555-aabd-4bbc-87f3-25379001adb2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

