Python Forum

Full Version: Create Executable file for Wireless Temperature Sensor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I have worked on a script which receives the data of wireless temperature sensors, I have used pyinstaller to create the executable file in windows as windows use the .exe extension but I want to use the same executable file in Different OS platforms like MAC and Linux but they are using .exe format.

So is there any way to run the same file in every platform?

Or do I have to create the separate executable for different OS
if run as a script, it will run on any platform so long as python is installed.
Once turned into an exe, it becomes platform specific and will only run on the platform it is built on.
You will have to create an exe for each platform.
(Jan-05-2019, 11:17 AM)Larz60+ Wrote: [ -> ]You will have to create an exe for each platform.
Or more correct not a .exe for linux,Mac.
As mention have to run pyinstaller on each platform,on Windows it will create foo.exe on Linux foo also no file extension.
But they work same when made,also they are both stand alone executable.