GUI2Exe is a Graphical User Interface
frontend to all the "executable
builders" available for the Python
programming language. It can be used
to build standalone Windows
executables, Linux applications and
Mac OS application bundles and plugins
starting from Python scripts.
我在一个当前项目中尝试了这两种方法,并决定使用cx_freeze。我发现开始比较容易。它可以选择将依赖项打包到一个zip归档文件中,这样就可以很容易地检查是否正确地包含了所有内容。
我很难让PyInstaller包含某些egg依赖项。它不能像我所需要的那样处理条件导入,而且查看捆绑的存档文件很困难。在Windows上,它需要pywin32(因此不能与virtualenv一起使用),而版本1.4不能与Python 2.6一起使用。没有关于是否支持Python2.7的信息。
为什么不使用像GUI2EXE这样的东西呢?
根据我的经验,我发现对于某些程序,py2exe不能正常工作,但是cx_freeze可以。还没试过pyinstaller。
相关问题 更多 >
编程相关推荐