【问题标题】:py2exe generated .exe shows error message on windows systemspy2exe 生成的 .exe 在 Windows 系统上显示错误消息
【发布时间】:2016-06-22 07:06:35
【问题描述】:

我开发了一个基于 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

任何形式的帮助都将受到高度赞赏....... 提前谢谢...

【问题讨论】:

  • 您究竟是如何创建 .exe 以及在什么样的系统上创建的?
  • 我在windows 7操作系统上使用python的py2exe模块创建了.exe文件.....使用的python版本是2.7
  • 由于我的系统是x64位的,但是我在x86平台上开发了程序。
  • 你有py2exe创建的所有文件和文件夹吗?
  • 显然缺少一些东西。你得到的只有这条消息吗?

标签: python opencv tkinter ocr py2exe


【解决方案1】:

也许它不是一个选项,但 py2exe 并不是市场上唯一的工具。

如何使用 PyInstaller。在这个question 中也没有给出答案,但有人提到在切换到 PyInstaller 后一切正常。 试试看吧。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-01
    • 2012-03-08
    • 1970-01-01
    • 2017-08-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多