Re:No Python interpreter? this simple RAT installs its own copy
by rripken on Friday April 09, 2021 @12:53PM
(#26752891)
What you are describing sounds like the onefile mode. Pyinstaller also has a onedir mode which is much faster to start. I packaged some python ml models into a pyinstaller built exe and a larger java application calls them. Onedir makes for a big install but they only take a second or two to run.
I think other packaging tools have a workaround for this particular problem but, in my experience, have other issues. Iād love to use Python for building CLI tools, but building a binary is so fragile that I only use the language for prototyping, and rewrite in C++ (maybe Go in future?) for production.