0
我可以在Windows 64位系统中正确生成一个使用cx_freeze的可执行文件。但是当我想在Windows 32位系统中使用可执行文件时,它无法工作,我怎样才能使它在系统是32位的其他计算机'cx_Freeze和Python 3.4
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)`
小心发布错误消息? – DineshKumar
我产生的执行只能在我的64位系统中工作,它没有错误。我只是想将它应用到另一台系统是32位的计算机上,并且出现exe与系统不兼容,exe不能跑。 – Robbie
根据我的回答,我认为,可能有这种错误的一种可能性。如果你用python 64位开发并打包你的代码,而其他系统安装了python 32位,你可能会得到这个错误。只需比较两个python版本即可。然后你可以领先。 – DineshKumar