在 Raspbian 上如何 运行 没有源文件的 Python 脚本?

How can I run a Python script without source files on Raspbian?

我在 Raspberry Pi 3 Model B+ 上开发了一个 Python 脚本,它在 Raspbian 操作系统上运行。我希望通过双击桌面图标启动我的应用程序。然而,这应该在不需要应用程序源文件的情况下工作。例如,在编译 C 程序时会发生这种情况。

我觉得pyinstaller library can help you there. I found a few guides, this one seems to be achieving what you are looking for: https://www.geeksforgeeks.org/convert-python-script-to-exe-file/