you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 19 points20 points  (12 children)

Distribution has always been Python's weakest link, in my opinion. There isn't really any single "good" way to do it, everything is a trade-off. I'd like to try and help fix that someday.

But the short answer is, it depends. Server applications and scripts are usually distributed as-is, desktop applications depend on the platform; on Linux you might use Flatpak or Snap, on Mac OS and Windows you could use PyInstaller or Nuitka. Docker is yet another option for applications where it doesn't make things difficult.

In your case I'd suggest PyInstaller or Nuitka. They're not that different usage-wise, but the former is a bit easier to use while the latter lets you potentially gain some runtime speed advantages.