Python – Build Python standalone executables for Linux using Windows machines

Build Python standalone executables for Linux using Windows machines… here is a solution to the problem.

Build Python standalone executables for Linux using Windows machines

Is it possible to create a standalone Linux executable with python code using a Windows machine? My development setup is in Windows and my product Unix machine requires a separate application.

I tried using the pyinstaller combination input, and each time, it creates a .exe file. Can I try other workarounds or workarounds?

Solution

No, there is no way to do this with PyInstaller, just a Windows development machine.

PyInstaller creates an executable file for the system on which you run it. If you run it on a Windows machine, you will get a Windows executable.

In the past, I solved this problem by creating a Linux development VM and running PyInstaller in it; It creates a Linux executable locally.

Related Problems and Solutions