与py2exe可执行做不能在Windows XP 32位运行 [英] executable made with py2exe doesn't run on windows xp 32bit

查看:653
本文介绍了与py2exe可执行做不能在Windows XP 32位运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个64位的Windows 7机器上py2exe可执行文件,并分发程序。

基于Windows XP的32位机程序拒绝运行表现出以下行为:


  

一个弹出窗口,说:是的Program.exe
  不是有效的Win32应用程序。


  
  

在命令提示符窗口说:访问
  拒绝


我检查的权限和用户具有完全控制和文件的完整所有权和其父目录。因此不能成为问题

唯一可行的可能性,我可以想像是一个OS /架构不兼容。我应该如何解决这个问题?

用于生成可执行我的setup.py文件:

 从distutils.core进口设置
进口py2exe设置(控制台= ['xerxes2excel.py'])

我跑到下面生成EXE:

 蟒蛇setup.py py2exe


解决方案

我觉得你只需要在您的计算机上安装32位Python和32位py2exe ....看<一个href=\"http://stackoverflow.com/questions/4935502/can-64-bit-python-create-32-bit-windows-executables\">Can 64位蟒蛇创建32位的Windows可执行

I created an executable with py2exe on a 64bit windows 7 machine, and distributed the program.

On a windows xp 32bit machine the program refuses to run exhibiting the following behavior:

a popup window says: program.exe is not a valid win32 application.

The command prompt window says "access denied"

I checked for permissions and the user has full control and complete ownership of the file and its parent directories. So that can't be the issue.

The only feasible possibility I can image is an OS/architectural incompatibility. How should I fix this?

My setup.py file used to generate the executable:

from distutils.core import setup
import py2exe

setup(console=['xerxes2excel.py'])

I ran the following to generate the exe:

python setup.py py2exe

解决方案

I think you just need to install 32-bit python and 32-bit py2exe on your machine.... see Can 64-bit python create 32-bit Windows executables

这篇关于与py2exe可执行做不能在Windows XP 32位运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆