【问题标题】:python wx / py2exe errorpython wx / py2exe错误
【发布时间】:2015-11-20 12:37:30
【问题描述】:

我在 python 中编写了一个工具,我在其中导入了 wxpython 库。 然后我使用 py2exe 将该工具转换为 .exe 文件。 一切都按预期工作,并创建了可执行文件。

当我启动可执行文件时,它会崩溃,并且此消息会写入日志:

Traceback (most recent call last):
File "v2.py", line 1, in <module>
File "wx\__init__.pyc", line 45, in <module>
File "wx\_core.pyc", line 16641, in <module>
AssertionError: wxPython/wxWidgets version mismatch

有什么建议吗? 谢谢 交流

【问题讨论】:

  • 请注意,我在 windows 下的 Python 的 PortableApps 安装中使用了 python 脚本,我通过 easyinstall 安装了 wxpython。

标签: wxpython py2exe wxwidgets


【解决方案1】:

解决方案:删除 ./dist 和 ./build 文件夹,然后再次运行 py2exe 脚本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多