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

When I use cxfreeze in Ubuntu, it automatically compiles the python script into a Linux executable. I looked through the documentation in detail, and I can not find a way to freeze the script in .exe to run the program on a computer running Windows. It can be done -?

+6
source share
1 answer

You can do this ... but you will need to install Wine (apt-get install wine), and then install in Windows the version of Windows Python and all the python libraries you need, and then you can freeze your script in exe for windows in your ubuntu block.

+4
source

Source: https://habr.com/ru/post/887471/


All Articles