简体   繁体   中英

How to create an executable file from python scripts for all windows?

How to create an executable file from python scripts?

How to create an executable file of python scripts which can be executed on windows 7 / 8/ 10 and 64 both 32 bit and 64 bit versions?

I have used PyInstaller,

but its exe gives an fatal error when I try to launch onn different windows system...

https://i.stack.imgur.com/NUK0o.jpg https://i.stack.imgur.com/gqsbH.jpg

First of all, if you use pyinstaller to create an exe file. This exe file will only run on this type of computer. For example, if you create an exe file on a windows 10 64bit, this will only work on 64 bit computers with Windows 10. So if you want to run your exe file on a windows 7 (like in your image) you need to create this exe from that computer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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