Python Forum

Full Version: Best strategy for creating .exe for windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In Linux Mint 20.2,Python 3.8 I have created an app that I now want to have a few folks test on Windows machines. My searches tell me there are basically two ways to get at this to where i can share with them: use Wine or VirtualBox. I was hoping not to have to invest in a copy of Windows. Does anyone have any experience and can share pros/cons. I am not that experienced a programmer so i struggle doing complex set ups but if the instructions are good step by step I can handle.
Thanks
use "py auto to exe" may this will help you.
I may have missed it but researching above, i could not find where it supports cross compiling from Linux to Windows.
(Apr-04-2022, 01:09 AM)hammer Wrote: [ -> ]i could not find where it supports cross compiling from Linux to Windows.
Pyinstaller is not a cross-compiler.
They way it works is that have to build on the platform you want distribute to.
PyInstaller Wrote:PyInstaller is tested against Windows, Mac OS X, and GNU/Linux.
However, it is not a cross-compiler: to make a Windows app you run PyInstaller in Windows; to make a GNU/Linux app you run it in GNU/Linux, etc.
PyInstaller has been used successfully with AIX, Solaris, FreeBSD and OpenBSD but testing against them is not part of our continuous integration tests.
So you have to do the work on Windows,then the .exe you give to other is stand alone(no work required on 3-part).
The same on Linux when use Pyinstaller there it will make a executable that work on Linux.
We have many post here about Pyinstaller it's a great tool that work with most of the 3-party packages in Python.

Other alternatives PyOxidizer has a list.
Missing Briefcase in links.
Thank you. I have a lot to learn beyond coding. I feel like the old farmer that gets caught in town over lunch so he goes into a chicken palace.
After all the choice bombardment (crispy/original, 3piece/4piece, legs or thighs, regular or supersize, etc) he replies " madam, all i wanted was some *&#! fried chicken.