I think I've heard that py2exe enables the creation of executable files, but I can't find a way. Has anyone ever succeeded in this? If you do, can I see the contents of the setup.py file and what command line options you used?
I'm now expecting to have executable files in places like /temp directories that unzip themselves and run.
py2exe python packaging
With PyInstaller, you can create an .exe file using the --onefile
option without any special dependencies. PyInstaller works the way you think it works, tying the necessary libraries to a single executable and releasing the libraries that the executable has tied before it runs (py2exe also has this capability. See minty's answer.)
I am using the version uploaded on svn because PyInstaller's latest release (1.3) is outdated. It works very well for apps that rely on PyQt, PyQwt, numpy, scipy, and so on.
© 2025 OneMinuteCode. All rights reserved.