Search code examples
pythonpy2exe

Reducing the size of executable from py2exe


Are there some practices to minimize the size of .exe file created by py2exe when creating executable of python script? My first impression upon using py2exe is, it creates relatively large size file.


Solution

  • There is an option to compress, which you can enable in the config file, but it will always be relatively large (~megabytes) because python interpreter must also be bundled in with the source code.