It's PyInstaller: https://pyinstaller.readthedocs.io/en/stable/
Or containers.
Or containers.
Containers are fine for a server after installing the runtime, which is already one too many steps. There isn't a self-contained app format that can run without installing something else before starting it.