Reputation: 35
I would like create Windows exe file in Ubuntu 12.04 from a Python script.
apt-get install cx-freeze
cd ~/.app/
ls
app.py
How to create a Windows XP, Vista, 7 executable of the app.py script?
Upvotes: 2
Views: 601
Reputation: 484
Freezing Python code on Linux into a Windows executable was only once supported in PyInstaller and later dropped. Sadly, seems the only solution for now is to install wine, then in wine you will install the windows version of python. From here you should be able to freeze the script into .exe for windows.
Upvotes: 3