[英]How to build exe file from python script for all Windows Version like: Xp,7,8,10
I build exe file using pyinstaller in windows 10 64bit os.我在 windows 10 64bit 操作系统中使用 pyinstaller 构建 exe 文件。 but when i test on windows7 64bit os then is not working.但是当我在 windows7 64 位操作系统上进行测试时,它无法正常工作。 that shows dll file error.显示 dll 文件错误。
so, I understated when the os is change then need to rebuilt exe file with that same system.所以,我低估了当操作系统发生变化时需要用同一个系统重建 exe 文件。 am I Right?我对吗?
pyinstaller --onefile -w --icon=pp-logo.ico WCS_Config_App.py --hiddenimport=pyserial --hiddenimport=numpy
this above way i create exe file.以上方式我创建exe文件。
So, I want to build exe file(standalone) execute for all windows system.所以,我想为所有 windows 系统构建 exe 文件(独立)执行。
Thank you for your time.感谢您的时间。
You can surelly build an app for all windows versions but compiling can be really tricky especially with big apps.The main considerations to take is:您当然可以为所有 windows 版本构建应用程序,但编译可能非常棘手,尤其是对于大型应用程序。主要考虑因素是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.