I can properly produce an executable using cx_freeze in windows 64bit system.But when I want use the executable in windows 32bit system,it can not work,how can I make it available in other computer whose system is 32bit.`
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)`
x32 bit computers cannot run x64 applications (This is the reason for your error).
I am sure cx_Freeze is compiling your exe in x64 bit version.
The solution is either to compile it on a x32 computer or (possibly I have not tested this myself) to use a x32 version of python (and cx_Freeze) (I assume you are using an x64 version of Python) as suggested by this post:
Can I make a 32 bit program with cx_freeze if I have a 64 bit OS? .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.