1

今天,我遇到了一个使用 pyinstaller 从一些 python 脚本创建的二进制文件的问题。我在 fc17 上创建了二进制文件,但是当我尝试在 fc18 上运行它时,我收到了一个错误,这与 fc17 (1.0.0k) 和 fc18 (1.0.1e) 上的 openssl 版本的差异有关。这引起了我对使用 pyinstaller 的能力的严重怀疑,因为我事先不知道我的二进制文件最终会在哪些 Linux 发行版上运行。每次我对 python 脚本进行更改时,我都愿意构建一次二进制文件,但我负担不起拥有所有可能的 Linux 发行版并在每个发行版上构建二进制文件。在使用 pyinstaller 构建应用程序时,是否有处理各种 Linux 发行版的方法?

4

1 回答 1

1

i think what you are looking for is cx_freeze

cx_Freeze is a set of scripts and modules for freezing Python scripts into executables, in much the same way that py2exe and py2app do. Unlike these two tools, cx_Freeze is cross platform and should work on any platform that Python itself works on. It supports Python 2.3 or higher (including Python 3), since it makes use of the zip import facility which was introduced in 2.3.

于 2013-10-09T22:19:27.843 回答