So, I struggled with this problem all the time, and I thought that I would publish my conclusions.
The Linux version of PyInstaller cannot make .exe or any non-Linux-native format. To make a Windows executable, you need to either use WINE (or at least say you don’t know how to do this) or use a Windows computer.
In addition, if the Windows computer you are using is 32-bit, it cannot execute 64-bit binaries. If you have a 64-bit version of Windows installed, it can easily make 64-bit binaries, but to create 32-bit you will need to install the 32-bit version of Python (and all the necessary libraries for your program).
So, to create a simple program to update the LCD with 32-bit and 64-bit binaries, I had to write code, copy it to 64-bit Windows, install 32-bit and 64-bit Python and pywin32 , and use PyInstaller using every other Python.
source share