将独立的Python应用程序分发到其他机器

发布于 2024-09-08 18:38:42 字数 318 浏览 0 评论 0原文

我在linux下使用cxfreeze创建了独立的python应用程序,并且可以在没有python和其他依赖项的情况下在其他机器上运行它。

但是,在 ma​​c OS X 上执行此操作时,在其他计算机中,应用程序会搜索以下python 安装位置,其中实际上存在于冷冻的机器中。

“/Library/Frameworks/Python.framework/Versions/3.1/Python”

如何在没有此依赖项的情况下执行此应用程序?

I created independent python app using cxfreeze under linux and can run it other machines without python and other dependencies.

But while doing it for mac OS X, in other machines the app searches for the following python installed location which actually present in the machine where it is frozen.

"/Library/Frameworks/Python.framework/Versions/3.1/Python"

How to execute this app without this dependency?

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

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

发布评论

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

评论(1

蔚蓝源自深海 2024-09-15 18:38:42

尝试适用于 Mac OS X 的 py2app。(适用于 Windows 的 py2exe。)

Try py2app for Mac OS X. (And py2exe for Windows.)

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