【发布时间】:2016-05-03 14:05:19
【问题描述】:
我可以在windows 64bit系统中使用cx_freeze正确生成可执行文件。但是当我想在windows 32bit系统中使用可执行文件时,它不能工作,我怎样才能让它在其他32位系统的计算机上可用。`
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == "win32":
#base = "Win32GUI"
base = "Console"
exe = [Executable(script = r'E:\programming\python\lx\sange\test_GUI.py',
base = base,
targetName = 'test.exe')]
setup( name = "guifoo",
version = "0.1",
description = "My GUI application!",
executables = exe)`
【问题讨论】:
-
愿意发布错误信息吗?
-
我生成的执行在我的64位系统上可以运行,没有错误。我只是想将它应用到另一台系统为32位的计算机上,出现exe不兼容系统,exe无法运行。
-
根据您的回答,我认为可能存在此错误的一种可能性。如果您已在 python 64 位中开发和打包您的代码并且其他系统安装了 python 32 位,您可能会收到此错误。只需比较两个 python 版本。那么你可能会得到领先。