【问题标题】:pyqt5 cx_freeze compilationpyqt5 cx_freeze 编译
【发布时间】:2014-09-05 00:21:54
【问题描述】:

我尝试使用 cx_freeze 制作 exe,编译时收到以下消息:http://wklej.org/id/1457081/ 当我运行我的输出文件时,我得到:http://i.imgur.com/t5E7GS2.png 我的设置很简单:

    # -*- coding: utf-8 -*-

import sys
from cx_Freeze import setup, Executable

base = None
if sys.platform == 'win32':
    base = 'Win32GUI'

options = {
    'build_exe': {
        'includes': 'atexit'
    }
}

executables = [
    Executable('start.pyw', base=base)
]

setup(name='simple_PyQt5',
      version='0.1',
      description='Sample cx_Freeze PyQt5 script',
      options=options,
      executables=executables
      )

每次我制作一些 pyqt5 应用程序时都会收到来自链接的错误,甚至很简单 我真的不知道我应该如何编写这个设置文件。

【问题讨论】:

    标签: python cx-freeze pyqt5


    【解决方案1】:

    这是 Python 3.4.1 + PyQt5 的当前问题。

    有关更多信息,请参阅此 bug 关于 cx_freeze 的报告。

    建议您可以从源代码构建 cx_freeze,这样就可以正常工作了。

    除非您需要 Python 3.4.1 引入的任何东西,否则替代方案是暂时回到 Python 3.3.5。

    【讨论】:

    • 谢谢,在错误报告页面上链接到 cx_freeze build 工作正常
    猜你喜欢
    • 2013-12-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-10
    • 1970-01-01
    • 2017-09-10
    相关资源
    最近更新 更多