我有一个 Cx_Freeze 安装文件,我正在尝试使其工作。令人非常沮丧的是used适当冷冻。但是现在我收到以下错误:
编辑。显示的错误不是通过控制台的 Python 异常,而是尝试启动通过冻结生成的结果 exe 文件时的崩溃报告。
'文件'notetest.py',第1行,在
_find_and_load importlib_bootstrap.py,第 2214 行
....
AttributeError 'module' object has no attribute '_fix_up_module'
我的 setup.py 文件如下:
import sys
import os
from cx_Freeze import setup, Executable
build_exe_options = {'packages': [], 'excludes' : []}
base = 'Win32GUI'
exe = Executable(
script = 'notetest.py',
initScript = None,
base = 'Win32GUI',
targetName = 'MedicaidAid.exe',
compress = True,
appendScriptToExe = True,
appendScriptToLibrary = True,
icon = None
)
setup( name = 'MedicaidAid',
version = '0.85',
description = 'MedicaidAid Software',
options = {'build_exe': build_exe_options},
executables = [Executable('notetest.py', base = base)])
您应该从此安装 cx_freezesite http://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_freeze。它包含一个解决该问题的重要补丁(请参阅this https://groups.google.com/forum/#!msg/comp.lang.python/Ubagx7NDtJE/_47ZP2Uj-BUJ详细讨论)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)