如果我正在处理 mac,我可以从 python 项目创建 .exe 文件吗?

Can I create .exe file from python project If I am working on mac?

我正在 Mac iOS 上工作,但我需要将我的整个项目制作为 .exe 文件,而不是 .dmg。它本来是 Windows 上的 运行,我想使用 pyinstaller 但我遇到了一些问题,想知道是否必须在 Mac 上工作。

PyInstaller 只能针对 OS 它是 运行 上的:Source. However, you could use a VM running Windows to build a Windows executable, or use something like wine (Example here) 在没有 VM 的情况下打包它。