Pytesseract Auto Shell Install Package Issue
Intenzi (1)

I am using pytesseract on replit.
One of the steps to make pytesseract work is going to shell and doing this install-pkg tesseract-ocr

The issue is, if I reconnect to the repl then I have to reinstall the tesseract-ocr pkg through the shell for pytesseract to function.

Is there any way to automate this process of installing the tesseract-ocr package through shell everytime replit reconnects to my repl?

I have already tried directly installing the tesseract-ocr package through the packages list but that gives an error.

You are viewing a single comment. View All
Answered by BearCoder01 (13) [earned 5 cycles]
View Answer
Intenzi (1)

@BearCoder01 One last question, as it is possible to install I assume we can also see through one of the os commands whether that package exists? If so that would make it a much simpler process to redownload if not existing instead of when there is an error.