[英]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. 当我在Ubuntu中使用cxfreeze时,它会自动将python脚本编译为Linux可执行文件。 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.
我已经仔细查看了文档,但是为了在Windows机器上运行程序,我找不到将脚本冻结为.exe的方法。 Can this be done-?
这可以做到吗?
你可以这样做....但是你必须安装Wine(apt-get install wine)然后在Wine中安装Python的windows版本和你的应用程序需要的所有python库,然后你就能够将您的脚本冻结到ubuntu框中的窗口的exe中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.