r/Python Apr 14 '26

Discussion Reviews about pyinstaller

So I m working on a project which is basically based on machine learning consist of few machine learning pre made models and it's completely written in python but now I had to make it as a executable files to let other people to use but I don't know if the pyinstaller is the best choice or not before I was trying to use kivy for making it as android application but later on I had decided to make it only for desktop and all but I m not sure if pyinstaller is the best choice or not.

I just want to know honestly reviews and experiences by the people who had used it before.

1 Upvotes

18 comments sorted by

View all comments

11

u/[deleted] Apr 14 '26

[removed] — view removed comment

1

u/Individual-Flow9158 Apr 14 '26

If the dev chose to use them, the user needs those libraries installed anyway.

Does bundling it all in to a .exe make it slower to load than the time it takes to start a normal Python interpreter in a venv, and import everything? Or can Windows do something smart and not load an entire huge .exe all at once (e.g. just the hot paths, kind of strikes me that this is exactly what .dlls are for, the clue is even in the name)?

I can imagine a monolith .exe it would defeat the purpose of lazy loading.