4 ms·
> Python -- you're already covered, just read the zipapp documentation; pyinstaller --onefile will create a signle file executable with an embedded python runt
by hathym 5y ago
> Python -- you're already covered, just read the zipapp documentation;
pyinstaller --onefile will create a signle file executable with an embedded python runtime and libraries (no need to install python)
https://pyinstaller.readthedocs.io/en/stable/usage.html https://pyinstaller.readthedocs.io/en/stable/usage.html
- mianos 5y agoI came here to say this but instead I am upvoting this. Pyinstaller is awesome. Another thing to add, if you use run pyinstaller in docker with an old base image and copy the executable out, you can make a pyinstaller executable that will run on a vast range of machines due to runtime backward compatibility. I have single executable python apps that run fine on redhat, debian, ubuntu and suse.