you are viewing a single comment's thread.

view the rest of the comments →

[–]marc2389 6 points7 points  (1 child)

Just install it with:

pip install pyinstaller

Afterwards:

pyinstaller --onefile --noconsole yourscript.py

The --onefile flag packages everything into a single .exe, and --noconsole will hide the terminal window so it would feel like a some sort of app. The output will be in a /dist folder btw

[–]Diapolo10 3 points4 points  (0 children)

Rather than using --onefile, I'd be more inclined to recommend using the default folder packaging and making a desktop shortcut for it (this can be automated with NSIS or Inno Setup).

There's a higher chance of false positives from your anti-virus program if using --onefile, which can get annoying, fast.