sosdaniel
sosdaniel

Reputation: 35

Python script to Windows exe file with cx-freeze under ubuntu 12.04

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

Answers (1)

LuckyLuc
LuckyLuc

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

Related Questions