Create executables in python (portability)

2

I have python code developed in MacOs system. Is it possible to generate executables to run on other systems (windows, linux)?

Example:

  

The file.py file was written and tested on the MacOs system, but I want to generate an executable to run on windows: file.exe from the Macintosh system. (vice versa)

QUESTION:

How to perform this task knowing that I have no windows system in the machine, and the goal is to create .exe in MacOs?

I already know Py2Exe , Py2App and cx_Freeze (among others), but they do not solve the problem, since you would need the windows system to generate .exe

I hope I have not been confused!

    
asked by anonymous 25.11.2015 / 22:54

1 answer

1

Hello

Well, to generate an .exe executable, you'll need a windows operating system, which I'm not sure of.

But, one thing you can do is install a Windows virtual machine or use BootCamp, a software (not tested) that installs along with your Mac Windows (click here to a tutorial site of it). But of course, just do this if the need for a windows executable is too great anyway.

Hugs!

    
18.12.2015 / 03:40