Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use PyInstaller to distribute a Qt5-based GUI app, and some associated CLI tools. It's fairly easy to configure, and works out fine.


I've tried this but never got the PyInstaller deployment process down smooth enough for my taste. Even for small apps, I end up rewriting in C# to compile executables with if I need to deploy to people who don't use code. With PyInstaller, since you have to package the Python interpreter the .exe always ends up too large and slow for my taste (especially since I usually compile with --onefile. I'm wondering how you do it, if you use onefile or have some better way to run PyInstaller so the final exe is smaller or faster.


I use -F (--onefile).

It's certainly not fast to start, but in my case, it's not a quick one-and-done type thing, so I don't mind too much


How big is your distribution file? I tried this but my project had numpy and pandas and the distributable was like 350 MB!


I have Qt, but not numpy or pandas. My executable is 40MB (still big).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: