python 可执行文件

发布于 2024-10-05 04:24:59 字数 99 浏览 0 评论 0原文

是否可以从 mac os x 创建针对 linux 的 python 可执行文件?

PyInstaller似乎还处于早期阶段,其他的我了解不多。

谢谢

is it possible to create python executable targeted for linux, from mac os x?

PyInstaller seems to be at an early stage, and I don't know much else.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浅浅 2024-10-12 04:25:00

您真的需要一个独立的可执行文件吗?对于大多数 Linux 发行版,分发 Python 软件的更简单、更常见的方法是仅分发源代码。

每个主要的 Linux 发行版都已经安装了 Python,并且有些发行版默认安装了它。

Do you really need a standalone executable? For most Linux distributions, the easier and more common way to distribute Python software is to just distribute the source.

Every major Linux distribution already has Python installed, and some have it installed by default.

人事已非 2024-10-12 04:25:00

有一种工具可以在单一操作系统上运行,并使您可以在不同操作系统上执行。您需要在安装了该操作系统的(虚拟)机器上对每个操作系统进行编译。 Fox OS X 你可以在 http://undefined.org/python/ 中检查 py2app

There is tool that can be run on single OS and make you executables for different OSes. You will need to do the compilation for every OS on a (virtual)machine that have it installed. Fox OS X you can check py2app in http://undefined.org/python/

给我一枪 2024-10-12 04:25:00

不知道是否适用于 OS X,但看看 cx_freeze

Dont know if available for OS X but take a look at cx_freeze

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文