[英]Compiling a python script to run on mac and windows
I have recently compiled a script ( Python
) to run on windows computers ( .exe
).我最近编译了一个脚本 (
Python
) 以在 windows 台计算机 ( .exe
) 上运行。 I was wondering if it was possible to compile a script to work on mac as currently I cant compile for them, and a lot of my friends who program too use macs.我想知道是否有可能编译一个脚本以在 mac 上工作,因为目前我不能为他们编译,而且我的很多编程的朋友也使用 mac。 I used
Cx-freeze
to compile my python script into an exe
, but I don't believe it is possible to use this to compile for windows.我使用
Cx-freeze
将我的 python 脚本编译成一个exe
,但我不相信可以使用它来编译 windows。
Any help greatly appreciated非常感谢任何帮助
Yes, You can use py2app
module with this command是的,您可以通过此命令使用
py2app
模块
pip install py2app
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.