开发者

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

开发者 https://www.devze.com 2023-03-03 04:20 出处:网络
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 t

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-?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号