如何在所有系统上制作可执行文件 运行

How to make an executable file run on all systems

我问这个是因为它不是我可以在 Internet 上找到的信息。一个可执行文件 运行 可以在所有系统上运行吗?如果没有,那么如何为不同的系统制作不同的可执行文件?我使用 auto-py-to-exe(但我的问题是 here) at the moment but am having trouble with cx-freeze (Question here - 它没有任何答案)。我不确定 py-installer(尽管从外观上看 auto-py-to-exe 使用 py-installer - 可能的白痴声明)。有人可以给我一个消息来源的答案吗?我在 python 中编码 - 使用 windows 10.

'auto-py-to-exe' 使用 'PyInstaller'.

并且 'PyInstaller' 将 Python 应用程序冻结(打包)为独立的可执行文件,在 Windows、GNU/Linux、Mac OS 下X、FreeBSD、Solaris 和 AIX。但它不支持交叉编译。 (https://github.com/pyinstaller/pyinstaller/wiki/FAQ)

如果要Mac可执行文件,必须在Mac系统下执行。