简体   繁体   English

哪个更适合将python 2.7程序编译为exe-py2exe或cx-freeze?

[英]Which is more optimal for compiling python 2.7 programs to exe - py2exe or cx-freeze?

I want to compile my python program to exe. 我想将我的python程序编译为exe。 I know two modules, with the help of which I can do that, they are py2exe and cx-freeze. 我知道两个模块,它们是py2exe和cx-freeze,在它们的帮助下,我可以做到。 Can somebody tell me the difference (Does cx-freeze have more features that py2exe because it is from an external source)? 有人可以告诉我区别吗(cx-freeze是否具有py2exe的更多功能,因为它来自外部来源)? Which one is more common among python users? 在python用户中哪个更常见? Which one works quicker and more reliably with python 2.7? 哪一个使用python 2.7更快,更可靠?

The main difference between the two is that py2exe is limited to Windows whereas cx_Freeze is cross-platform and works on Windows, Linux, Mac OS X, etc. If you are only planning on supplying your application to those on Windows then py2exe is a valid option. 两者之间的主要区别是py2exe仅限于Windows,而cx_Freeze是跨平台的,并且可以在Windows,Linux,Mac OS X等上运行。如果仅打算将应用程序提供给Windows上的应用程序,则py2exe是有效的选项。 It also has more Windows specific features that may be of benefit in that case. 它还具有更多Windows特定功能,在这种情况下可能会有所帮助。

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

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