PyInstaller:

1
pyinstaller your_script.py --onefile

生成一个 your_script.exe,简单快捷。

Nuitka:

1
nuitka --onefile --standalone your_script.py

会调用系统 C 编译器(比如 MSVC 或 gcc),生成优化过的本地二进制。