开发者

Help On Python program that can use to compile python coding into a standalone .exe file

开发者 https://www.devze.com 2023-01-12 11:39 出处:网络
I am currently working on a python program with the us开发者_C百科e of wxpython to make out a gui application. However, i wish to compile my application to be like a standalone application where peopl

I am currently working on a python program with the us开发者_C百科e of wxpython to make out a gui application. However, i wish to compile my application to be like a standalone application where people can just get the .exe file and run it without installing python and wxpython. I am not sure if it is possible, thus i hope that someone can give me some guidance on this. Also, if it is possible, please tell me what program should i use to accomplish that. Thanks


You need to create a frozen binary. You can use py2exe for this purpose.

For what it's worth, if you ever need to make executables on a unix system, you can use Freeze, a utility that comes with Python.


For a nice cross-platform solution, I always recommend pyinstaller (actually, I find it better than py2exe even just for making a Windows-only executable -- it can do code signing, can seamlessly incorporate "big, hairy" libraries such as PyQt, etc;-).

0

精彩评论

暂无评论...
验证码 换一张
取 消