我有一个用PyQt5创建的python GUI程序,我试图使用cx_freeze冻结成一个Windows可执行文件。构建工作正常,但是当我尝试运行可执行文件时,程序会返回一系列错误。
以下是我的setup.py
from cx_Freeze import setup, Executable
buildOptions = dict(packages = [], excludes = [])
import sys
base = 'Win32GUI' if sys.platform=='win32' else None
executables = [
Executable('mainbeam.py', base=base)
]
setup(
name='BeamFEA',
version = '0.1',
description = 'A program for solving beam problems using FEM',
options = dict(build_exe = buildOptions),
executables = executables
)
返回错误的快照: