Cx_freeze: Executable With Pytesseract Fails On Other Pc
Solution 1:
pytesseract
is a wrapper for Google's Tesseract-OCR Engine. In order that pytesseract
works, the Tesseract-OCR engine needs to be installed and one must be able to invoke the tesseract command as tesseract
(this means that the Tesseract-OCR installation directory needs to be in the PATH).
I believe that pytesseract
has been properly included in the executable but that the tesseract
command does not work on the "other PC" (either Tesseract-OCR is not installed there or the Tesseract-OCR installation directory is not in the PATH there).
You need to tell the owner of the "other PC" to install Tesseract-OCR and to check that it can be started with the command tesseract
from any location.
Another option would be to include the whole Tesseract-OCR installation directory in the frozen executable using the build_exe
option include_files
(your variable additional_files
) and to make sure that this included directory gets included in the PATH on the target PC, but this is probably not platform-independent and thus not recommended.
Post a Comment for "Cx_freeze: Executable With Pytesseract Fails On Other Pc"