本文介绍了Linux中的独立Python应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Linux中分发独立的Python应用程序?

How can I distribute a standalone Python application in Linux?

我认为我可以认为在任何现代发行版中都存在最新的Python解释器.问题在于处理那些不属于标准库的库,即wxPython,scipy,python密码工具包,reportlab等.

I think I can take for granted the presence of a recent Python interpreter in any modern distribution. The problem is dealing with those libraries that do not belong to the standard library, i.e. wxPython, scipy, python cryptographic toolkit, reportlab, and so on.

是否有与py2exe(例如,我从未尝试过)相对应的可运行的Linux?有免费的,开源的吗?

Is there a working Linux counterpart to, say, py2exe (which, by the way, I have never tried)?Is there a free, opensource one?

推荐答案

创建一个deb(对于Debian衍生的所有内容)和一个rpm(对于Fedora/SuSE).在包装中添加正确的依赖项,您可以合理地确定它会起作用.

Create a deb (for everything Debian-derived) and an rpm (for Fedora/SuSE). Add the right dependencies to the packaging and you can be reasonably sure that it will work.

这篇关于Linux中的独立Python应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 05:23