从ubuntu上的python eclipse项目导出可运行的程序 [英] Export runnable program from python eclipse project on ubuntu

查看:167
本文介绍了从ubuntu上的python eclipse项目导出可运行的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次使用python,所以我用简单的UI做一个简单的程序。
我使用eclipse与PyDev作为IDE。



我知道在JAVA a中导出一个可运行的程序,我们使用.jar文件,但是有用的python如何在ubuntu上的eclipse中执行此操作?



所以如果有任何解释与一些细节或一个有用的链接,我将不胜感激。



谢谢,



Samer

解决方案

Windows上最简单的方法是 py2exe 。如果您使用的是Mac,请查看 py2app 。如果你在Linux / Unix环境中,我不太熟悉如何创建一个独立的,但是一个简单的shell脚本,如

  python script_name.py 

应该做的伎俩。调用launch.sh或某些东西,并将权限设置为rwx - x - x或任何适合您的安全范例,您应该是好的。



注意,没有一个那些实际上使用Eclipse IDE本身,但是它们并不是很难使用,所有你需要知道的是Eclipse是否倾倒你的东西(你想知道的备份/ verson控制目的)的文件夹。 p>

It is my first time to use python, so i doing a simple program with a simple UI. I am using eclipse with PyDev as an IDE.

I know in JAVA a to export a runnable program we use .jar files, but what works for python and how to do it in eclipse on ubuntu ?

So if any explanation with some details or a useful link, i will be grateful.

Thanks,

Samer

解决方案

Easiest way on windows is py2exe. If you're using Mac, check out py2app. If you're in a Linux/Unix environment, I'm a bit less familiar with how to create a standalone, but a simple shell script like

python script_name.py

should do the trick. Call it launch.sh or something and set the permissions to rwx--x--x or whatever fits your security paradigm and you should be good.

Note, none of those actually uses the Eclipse IDE itself, but they aren't very difficult to use, and all you need to know if the folder where Eclipse is dumping your stuff (which you want to know for backup/verson control purposes anyway).

这篇关于从ubuntu上的python eclipse项目导出可运行的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆