2 ms·
> it's basically impossible to produce an executable that works on a system that doesn't have Python installed. Really? I think many of solutions you've tried
by lifthrasiir 5y ago
> it's basically impossible to produce an executable that works on a system that doesn't have Python installed.
Really? I think many of solutions you've tried (including Nutika, py2exe and pyinstaller) do produce an executable with an embedded Python runtime [1]. I guess you were rather unable to produce a working executable, which can happen mainly due to peculiar dependency requirements. A list of dependencies you needed would help.
[1] (Added later:) see the following reply for what this exactly means.
- stavros 5y agoWell the execution finished successfully in most cases, but the resulting binary had a dependency on libpython.so that it couldn't find. I'll try again, thanks!
- lifthrasiir 5y agoI think some of them does require libpython.so/dll to be bundled together. In some cases like pyinstaller [1] you can alternatively choose to embed that DLL file into the final executable; in that case the executable would first extract itself into a temporary folder. The point is that you don't need the full Python installation to run that executable. [1] https://pyinstaller.readthedocs.io/en/stable/operating-mode.html#bundling-to-one-file https://pyinstaller.readthedocs.io/en/stable/operating-mode....
- stavros 5y agoHmm, that makes sense, thank you!