无需解释器即可轻松将 python 导出给某人
假设我想向一群人展示我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为了简单起见,我喜欢 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.
传统的解决方案之一是: http://www.py2exe.org/
One of the traditional solutions is: http://www.py2exe.org/