Python Compiler
If you need help configuring, installing or using anything Linux please post in here.
7 posts
Page 1 of 1
Is there a way where I can compile my python program (.py) to become just a regular program that I don't haft to run threw the terminal to run it???
Example I don't wanna do this to run it threw the terminal.
Example I don't wanna do this to run it threw the terminal.
Code: Select all
Example I wanna be able to make the file like an .exe, but for Linux like the one seen below../whatever.py
Last edited by mikethedj4 on Sat Aug 28, 2010 11:50 pm, edited 2 times in total.
Code: Select all
chmod +x hello.py
./hello.py
You're crazy!
I'm not crazy, my mother had me tested. ~Sheldon Cooper
I'm not crazy, my mother had me tested. ~Sheldon Cooper
agust1337 wrote:I just told you that in skypeCode: Select allchmod +x hello.py ./hello.py
beep you
And thats not a compiler. I mean, it wont generate the for an example '*exe' :P
Agust1337 wrote:That's exactly what I don't wanna do bro, thoughs are the terminal commands for one making the file an executable, and two running the program in the terminal. I wanna be able to make the file like the one seen below where I can just double click it and run it.Code: Select allchmod +x hello.py ./hello.py
You do not have the required permissions to view the files attached to this post.
There is a utility for Linux called Freeze which is part of the Python runtime. You can use that to generate compiled executables.
http://wiki.python.org/moin/Freeze
http://wiki.python.org/moin/Freeze
Freeze works, but it makes a huge list of files, and makes it a lot bigger than it's suppose to be, I looked into pyinstaller, which I got errors as well as cxpython, and py2app (works with linux, and mac os x)
Yo if anyone's wondering this, I just got the answer on Stack Overflow.
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023