我想在我的64位Windows 7机器上使用py2exe打包python应用程序。 这个应用程序的最终目标是32位的Windows机器。使用py2exe从64位Windows 7机器打包python的32位WIndows XP
我在64位Windows 7机器上使用32位python 2.7。当我打包应用程序时,py2exe会警告我需要打包的system32目录中的几个DLL。
构建的exe现在无法在目标计算机上运行:Windows XP(32位)和Windows Vista(32位),并显示C:\ myapp \ bin \ WS2_32.dll文件已损坏,我需要检查它违背了Windows的安装。
检查: 的Windows 7 64位:system32目录下WS2_32.DLL有大小290KB 的Windows XP 32位:系统目录下有大小80 KB
我的问题是,我可以建立一个XP/Vista的32位应用程序考虑到DLL大小的差异,使用Windows 7中的py2exe。
我也尝试用XP DLL替换C:\ myapp \ bin \ WS2_32.dll ..但这次应用程序没有启动。
看到关于同一主题的一些其他答案:http://stackoverflow.com/questions/6378673/executable-made-with-py2exe-doesnt-run-on-windows-xp-32bit – tovmeod 2012-02-13 23:12:51