Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can cx-freeze be used in Ubuntu to freeze a python script to a Windows executable?

When I use cxfreeze in Ubuntu, it automatically compiles the python script to a Linux executable. I've looked through the documentation extensively, and I can't find a way to freeze the script into a .exe for the purposes of running the program on a Windows machine. Can this be done-?

like image 282
Jonathan Avatar asked May 06 '11 17:05

Jonathan


1 Answers

You can do that.... but you'll have to install Wine (apt-get install wine) and then install in Wine the windows version of Python and all the python libraries your application needs, and then you'll be able to freeze your script into an exe for windows in your ubuntu box.

like image 196
Cédric Julien Avatar answered Sep 17 '22 02:09

Cédric Julien