简体   繁体   中英

Compiling a python script to run on mac and windows

I have recently compiled a script ( Python ) to run on windows computers ( .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. 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.

Any help greatly appreciated

Yes, You can use py2app module with this command

pip install py2app

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM