问题
I would like use a PC to create an executable from a python script that can run on a MAC. In other words, I need a cross-platform compiler. From the BeeWare landing page:
BeeWare
Write once. Deploy everywhere.
Write your apps in Python and release them on iOS, Android, Windows, MacOS, Linux, Web, and tvOS using rich, native user interfaces. Multiple apps, one codebase, with a fully native user experience on every platform.
PyInstaller can create an executable from Windows to Windows or from Mac to Mac (and no doubt Linux as well) but can't go from one to the other. Is BeeWare able to compile across operating systems?
There is a similar question here but it is very old and does not mention BeeWare so I think this question is worth asking. It also asks the question as if it would be a single executable and I'm that will never happen. So I would just like to be able to compile for several operating systems from a single machine running one operating system.
I can't give more of an example than that but I can say that the project does create a GUI with just one text input field and two buttons. So it's not very complicated. The most complicated bit is that it does use Selenium to interact with a web page via a Chrome browser.
来源:https://stackoverflow.com/questions/63157043/is-beeware-the-answer-to-cross-platform-python-executable-creation