问题
I have to build a python app for a MacOS user and I'm using Windows. I saw that using pyinstaller you can build .app files, but how do I do that on Windows?
回答1:
As Pyinstaller's docs states:
PyInstaller is tested against Windows, Mac OS X, and GNU/Linux. However, it is not a cross-compiler: to make a Windows app you run PyInstaller in Windows; to make a GNU/Linux app you run it in GNU/Linux, etc. PyInstaller has been used successfully with AIX, Solaris, and FreeBSD, but is not tested against them.
This means you can't by only using Pyinstaller. You can try using something like a virtual machine, or containers, and use the common way (pyinstaller <script>.py
) to do this
来源:https://stackoverflow.com/questions/57560284/build-a-dmg-file-from-py-using-pyinstaller-on-windows