0

Currently I'm using cx_Freeze to turn .py into .exe and this works fine with modules and everything, but I can't find any way to make it so it could run in Linux. Is there any alternative for making it be able to run on Linux? Using something else other than cx_Freeze is fine.

Is there any way to compile it for Linux, while on Windows

2 Answers 2

1

From the docs

cx_Freeze works on Windows, Mac and Linux, but on each platform it only makes an executable that runs on that platform. So if you want to freeze your program for Windows, freeze it on Windows; if you want to run it on Macs, freeze it on a Mac.

Sign up to request clarification or add additional context in comments.

3 Comments

Yes, I know. What I meant is there any way to compile it for Linux, while on Windows. (Edited question to include this.)
Use VirtualBox and install a virtual machine with a Linux distribution
Yep, that's what I'm now doing. Thanks for the help!
0

You should try pyinstaller.

It supports creation of self-encapsulated python executables that work even when the python runtime is not installed.

Comments

Your Answer

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.