A distutils extension to create standalone Windows programs from Python code
py2exeis a distutils extension which allows to build standalone Windows executable programs (32-bit and 64-bit) from Python scripts. Python versions included in the official development cycle are supported (from 3.6 to 3.9 included).
py2execan build console executables and windows (GUI) executables. Building windows services, and DLL/EXE COM servers might work but it is not actively supported.
py2exeis hosted here: https://github.com/py2exe/py2exe.
Detailed changelog is published on GitHub.
Version 0.10.4.1: -
ModuleFinder: add support for the
pkg_resources.extern.VendorImporterloader - New hooks for
Version 0.10.4.0: -
zipextimportersupports external modules that use multi-phase initialization (PEP 489) - New hook for
dllfinderprovides a new method to add data files in the zip archive
Version 0.10.3.1: - New hook for
ModuleFinder: respect excludes list in
import_package- Updated hook for
Version 0.10.3.0: - New hook for supporting
matplotlib3.2 and higher. - Fix for including implicit namespace packages as per PEP420.
Version 0.10.2.1: - Patch
Version 0.10.2.0: - New module finder with support for implicit namespace packages (PEP 420). -
DLLFinderautomatically excludes VC++ redist and Windows CRT DLLs from bundles. - Several fixes for bundling software with
bundle_files<=2(only the standard library is supported, other dependencies may or may not work). - New hooks for
Version 0.10.1.0: - Add support for Python 3.9. - Drop support for Python 3.5. - New hooks for
Version 0.10.0.2 (from versions 0.9.x): - Introduce compatibility with Python 3.5, 3.6, 3.7, and 3.8. - Drop compatibility with Python 3.4 and earlier. - New or updated hooks for
zipfile=Noneoption has been removed. -
runtime: the Python interpreter DLL is no longer altered before being inserted in the executable bundle. - Several bugfixes, better error messages.
pip install py2exe
Documentation about the setup-script and other usage tips are in the wiki pages at http://www.py2exe.org.
build_exeCLI is not actively supported at the moment. Users are encouraged to create their own
setup.pyfiles. Documentation on how to use the CLI can be found here.
Further informations about the original development of
py2exeand other usage guidelines can be found in the original README.