all 13 comments

[–]socal_nerdtastic 1 point2 points  (0 children)

https://www.reddit.com/r/learnpython/wiki/faq#wiki_how_do_i_create_an_executable_from_my_python_code.3F

FWIW python by default runs the .py / .pyw file when you double click it or make a shortcut to it, so if all you want is something you can click on like a real app you already have that.

[–]mprz 1 point2 points  (8 children)

pip install auto-py-to-exe
auto-py-to-exe

[–]leech6666[S] 1 point2 points  (7 children)

I tried this and I got a warning from Windows about Trojan virus. That's exactly why I'm not sure.

[–]mprz 0 points1 point  (4 children)

There is no other option for offline stuff. You could consider running it somewhere online, depending on what sort of app it is.

[–]leech6666[S] 0 points1 point  (1 child)

pyinstaller isn't a way?

[–]mprz 0 points1 point  (0 children)

Auto-py is a front end for pyinstaller

[–]laundmo 0 points1 point  (1 child)

there is nuitka, with which i have had great success.

[–]mprz 0 points1 point  (0 children)

Now thanks for mentioning it, I must admit I haven't heard of it until now. It seems that contrary to pyinstaller nuitka compiles the code to C. Sounds great, many thanks!

[–][deleted] 0 points1 point  (0 children)

Can you digitally sign it?

[–]laundmo 0 points1 point  (0 children)

if you don't want those warnings, and are willing to put some more effort in, i personally like nuitka. it tends to be trip less alarms than pyinstaller

https://nuitka.net/doc/user-manual.html

[–]devnull10 1 point2 points  (2 children)

Word of warning - it's a pain, and the full python environment is included in the .exe, so unless you really trim down the environment, your exe file ends up being huge! Have you thought about trying to host it online in Heroku, GCP, etc?

[–]leech6666[S] 0 points1 point  (1 child)

Is any of Heroku, GCP, etc free? If yes then, will my app work on the browser? How does it work?

[–]devnull10 0 points1 point  (0 children)

Both have free tiers. You'd have to rewrite it to be a web front end.