Reputation: 813
How to make python program standalone executable under linux
I have done some research but I am not looking for a way to make a script and run the .py file like answered in this question. What do I use on linux to make a python program executable
I am looking to "complie" the .py to a standalone program so users in a linux environment like ubuntu can run it out of the box without installing python and the libraries I used because no root access. I found py2exe for windows. I would think there is a way to achieve this in linux?
Upvotes: 0
Views: 1742
Reputation: 649
You can use Jython
to compile it to JVM. Using the Jython compiler
jythonc [options] [module]*
This would, however, require Java to be installed...
There are also a couple of other resources to compile Python. From Compiling Python Code, some cross-platform tools are
but I do not know anything about those.
Upvotes: 0
Reputation: 63
Doesn't pyinstaller compile under the OS you are using?
if you want a windows exe - use pyinstaller in windows environment...
For Linux, use pyinstaller in Linux.
Upvotes: 1