py2exe - creating executable

Asked 1 years ago, Updated 1 years ago, 127 views

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

2022-09-21 21:09

1 Answers

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.


2022-09-21 21:09

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.