Convert Python Script to .exe that will work on all/most versions of Windows

社会主义新天地 提交于 2019-12-06 15:51:37

I roll up my wxPython-based app using PyInstaller on Windows Vista/32. After building the executable, I roll that into an installer using InnoSetup. I have customers running everything from XP to 8 in both 32 and 64-bit modes from the same setup executable made in this fashion.

I'm considering building 64-bit versions but so far nobody's asked for it and it hasn't seemed necessary.

I've tried py2exe, cxFreeze, and PyInstaller on Windows, and so far PyInstaller is my favorite. I ran into issues with py2exe on some platforms; cxFreeze at the time couldn't handle putting in version resources (it can now) and PyInstaller seemed to "just work" the quickest right out of the box.

So to cut to the chase, no you don't need to build both 32-bit and 64-bit versions of your app, if you don't care that on 64-bit Windows it'll run in 32-bit mode through the WOW virtual machine.

Your best bet is to create on the lowest system you want to support. IT should then be forward compatible. 32bit will run on 64bit Windows just fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!