简体   繁体   English

为 windows 7 和 windows 10 制作一个 exe(python 脚本)

[英]Make a exe for both windows 7 and windows 10(python script)

I have a python project and i converted it to a exe on my desktop(Windows 10) but when i send.exe file to my friend(My friend use Windows 7), IT IS NOT WORKING!我有一个 python 项目,我将其转换为桌面上的 exe(Windows 10),但是当我将.exe 文件发送给我的朋友(我的朋友使用 Windows 7)时,它不工作!

So how can I convert a exe file for Both windows 7 and Windows 10那么如何为 windows 7 和 Windows 10 转换 exe 文件

Thank you very much!非常感谢!

Take a look at the following topic看看下面的话题

Py2exe and psycopg, build on Windows 10, can't run on Windows 7 Py2exe 和 psycopg,在 Windows 10 上构建,无法在 Windows 7 上运行

Add this to the options dict in setup.py:将此添加到 setup.py 中的选项字典中:

dll_excludes': ['Secur32.dll', 'SHFOLDER.dll', 'CRYPT32.dll'] dll_excludes':['Secur32.dll','SHFOLDER.dll','CRYPT32.dll']

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM