且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从ubuntu上的python eclipse项目导出可运行的程序

更新时间:2023-09-29 23:24:22

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).