簡體   English   中英

py2exe生成的.exe在Windows系統上顯示錯誤消息

[英]py2exe generated .exe shows error message on windows systems

我已經開發了一個基於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 "pytesseract\\pytesseract.pyc", line 94, in run_tesseract File "pytesseract\\pytesseract.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之后,一切工作都很好。 試一試。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM