0

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?

asked Oct 26, 2017 at 18:30
2

2 Answers 2

1

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.

answered Oct 26, 2017 at 18:38
Sign up to request clarification or add additional context in comments.

Comments

0

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.

answered Oct 26, 2017 at 18:34

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.