Pyinstaller打包的应用,在Windows上无法打开

问题描述

在 Mac 上用 Python 开发了一个桌面应用程序,然后我使用 pyinstaller 打包它并尝试在 Windows10 使用它,但是在 Windows 10 上无法运行此应用程序。

解决方案

PyInstaller 不是跨平台的。

如果你想在 Windows 上运行,你必须在 Windows 上编译。 Mac OS 和 Linux 相同。

另外,通过chatgpt也能得到相同的答复:

image.png