Py2exe

编程入门 行业动态 更新时间:2024-10-26 08:22:54
Py2exe - 无法运行在Windows 7上使用Windows 7计算机创建的.exe文件(Py2exe - Can't run a .exe created on Windows 10 with a Windows 7 computer)

我在Windows 10上使用Py2exe创建了一个.exe文件,但是当我尝试在Windows 7计算机上运行它时,它说os版本是错误的。

谁能告诉我如何解决这个问题? (如使用其他Python或Py2exe版本或在setup.py中设置特定配置)

I created a .exe file using Py2exe on Windows 10 but when I try to run it on a Windows 7 computer it says that the os version is wrong.

Can anyone tell me how to fix this? (like using another Python or Py2exe version or setting a specific configuration inside setup.py)

最满意答案

我自己解决了这个问题,如果有人遇到同样的错误,我会分享答案。 我只需要下载一个32位版本的Canopy(使用Python 2.7)和py2exe,以便他们能够在Windows 7上工作。

I solved the problem myself and I'm going to share the answer if someone ever has the same mistake. I just had to download a 32-bit version of Canopy (with Python 2.7) and py2exe in order for them to work on Windows 7.

更多推荐

本文发布于:2023-07-07 09:07:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1061419.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Py2exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!