PY2EXE生成的.exe在Windows系统上显示错误消息



我已经开发了一个基于Python OpenCV的OCR系统,并使用PY2EXE生成了.EXE文件。问题是它在几个Windows系统上显示了一条错误消息。

错误消息:

Exception in Tkinter callback Traceback <most recent call last>: File "Tkinter.pyc", line 1536, in __call__ File "gui_tes3.py", line 89, in VerifyDocument File "gui_test3.py", line 37, in OCR File "pytesseractpytesseract.pyc", line 94, in run_tesseract File "pytesseractpytesseract.pyc", line 161, in image_to_string File "subprocess.pyc", line 710, in __init__ File "subprocess.pyc", line 958, in _execute_child WindowsError: [Error 2] The system cannot find the file specified

任何类型的帮助都将不胜感激.......预先感谢...

也许不是一个选择,但是PY2EXE并不是市场上唯一的工具。

使用pyinstaller呢?在这个问题中,也没有给出任何答案,但是提到在切换到Pyinstaller后,一切都很好。尝试一下。

最新更新