无需解释器即可轻松将 python 导出给某人

发布于 2024-12-16 00:18:30 字数 228 浏览 9 评论 0原文

假设我想向一群人展示我的 python 程序。我不想告诉他们每个人“好吧,去python网站,安装解释器,打开IDLE,打开我的程序,按F5,然后它就会运行”。有什么方法可以向他们发送某种格式的文件,他们可以轻松运行它吗?

我正在考虑将其嵌入到 Java 中,但我见过的解决方案似乎仍然需要 python 解释器来运行它。

PS 我是 python 新手,所以如果回复不是太技术性和混乱,我将非常感激。 :)

Suppose I have a group of people to whom I want to show my python program. I don't want to have to tell them each "Ok, go to the python website, install the interpreter, open IDLE, open my program, press F5, and then it will run". Is there some way I can just send them a file of some format and they can run it easily?

I was thinking in the way of embedding it into Java, but the solutions I've seen for that seem to still require the python interpreter to run it.

P.S. I'm new to python, so I would be extremely grateful if responses aren't too technical and confusing. :)

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

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

发布评论

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

评论(2

坐在坟头思考人生 2024-12-23 00:18:30

为了简单起见,我喜欢 cx-freeze ,但是 PyInstaller 也很容易使用。 Py2exe可能是传统的解决方案,但它已经3年没有更新了。

I like cx-freeze for simplicity, but PyInstaller is also easy to use. Py2exe may be the traditional solution, but it hasn't been updated in 3 years.

感性不性感 2024-12-23 00:18:30

传统的解决方案之一是: http://www.py2exe.org/

One of the traditional solutions is: http://www.py2exe.org/

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