py2exe for Python 3
py2exe is a software to build standalone Windows executable programs from Python
scripts. py2exe can build console executables and windows (GUI) executables.
py2exe supports the Python versions* included in the official development cycle.
Development of py2exe is hosted here: https://github.com/py2exe/py2exe.
Changes
The detailed changelog is published on GitHub.
Version 0.14.2.0:
- Reintroduce Windows Service freezing in
freezewith theservice=argument - Deprecate
bundle_files<3andzipfile=None. Both these options will be removed in the next major release. See discussion #246 for further details. - (Officially) deprecate target
ctypes_comdll. This target will be removed in the next major release. See issue #217 for further details. - Fix hook for
scipy.
Version 0.14.1.1:
- Fix hook for
pyphen - Add
packagingto the runtime dependencies
Version 0.14.1.0:
- Add support for Python 3.14
- Drop support for Python 3.9
- Add hook for
pyphen - Fixes for the
charset-normalizer,ctypes,pandas, andscipyhooks
Version 0.14.0.0:
- Add support for Python 3.12 and 3.13
- Drop support for Python 3.8
- Values of
bundle_fileslower than3are not supported in Python 3.12 and newer. See issue #225 for further details - Fixes for the
matplotlib,numpy, andtkinterhooks
Version 0.13.0.2:
- reintroduce ability to specify different version info for each of the frozen binaries
- fix a bug in
MemoryModule.c:PerformBaseRelocation - fix missing initialization settings for the runtime Python interpreter
- add support for
setuptoolsv72 - fix the
matplotlib,numpy, andscipyhooks - fix
py2exewheels build withsetuptoolsv70.0.0
Version 0.13.0.1:
- improved the hook for
pkg_resourcesto detect its vendored content automatically - the
matplotlibhook now does not excludewxautomatically - adapted the hook for
matplotlibto support their use ofdelvewheel - adapted the hooks for
numpyandpandasto support the new.libslocation
Version 0.13.0.0:
- Add support for Python 3.11
- Drop support for Python 3.7
- Drop support for
win32wheelswin32wheels are still built and shipped but are provided untested. Issues experienced when using these wheels will not be investigated. See https://github.com/py2exe/py2exe/discussions/157 for further information.
- Remove
build_execommand line interface. Please use thepy2exe.freezeAPI.
Version 0.12.0.2:
- Support
scipyversions newer than 1.9.2. - Fixed documentation for the
py2exe.freezeAPI.
Version 0.12.0.1:
- Fixed an issue that prevented builds via the deprecated
setup.pyAPI.
Version 0.12.0.0:
- Introduce the new
py2exe.freezeAPI. Documentation can be found here. - Use of the
setup.py py2execommand and ofdistutilsis deprecated as per PEP 632. Both these interfaces will be removed in the next major release. See here for a migration guide. - Add two hooks to fix the bundling of
winrtandpasslib.
Version 0.11.1.1:
- The log file for windows apps is now stored in
%APPDATA%by default ModuleFindernow raises an explicit error if a required module is inexcludes- Restore hook functionality for
pkg_resources - The
Stderr.writemethod used for windows apps now returns the number of written bytes
Version 0.11.1.0:
- Drop support for Python 3.6
- Include package metadata in the bundle archive (to be used by e.g.
importlib.metadata) - Fixed a bug that prevented to use the
optimizeoption whensixwas in the bundle - Fixed a bug that ignored the
optimizeflag for some packages
Version 0.11.0.1:
- Show again relative paths in Tracebacks that happen from the frozen application (#12 and #114)
Version 0.11.0.0:
- New module finder
mf310written as a wrapper around CPythonmodulefinder.ModuleFinder - Add support for Python 3.10
- New hook for
scipy zipextimportercan now be built as a standalone extension via its own setup script
Version 0.10.4.1:
ModuleFinder: add support for thepkg_resources.extern.VendorImporterloader- New hooks for
pkg_resourcesandinfi
Version 0.10.4.0:
zipextimportersupports external modules that use multi-phase initialization (PEP 489)- New hook for
selenium dllfinderprovides a new method to add data files in the zip archive
Version 0.10.3.1:
- New hook for
pycryptodomex ModuleFinder: respect excludes list inimport_package- Updated hook for
matplotlib>= 3.4.0
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
MyLoadLibraryto supportsslwithbundle_files=0.
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
pycryptodomeandshapely.
Version 0.10.1.0:
- Add support for Python 3.9.
- Drop support for Python 3.5.
- New hooks for
urllib3andpandas.
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
certifi,numpy,tkinter,socket,ssl, andsix. build_exe: thezipfile=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.
Installation
pip install py2exe
Usage
Use the py2exe.freeze function as documented here.
Using a setup.py script or the builder
Using a setup.py script with py2exe is deprecated. Please adapt your
scripts to use the new freeze API. This interface will be removed in the
next major release.
The build_exe (or -m py2exe) CLI was removed in version 0.13.0.0.
Known issues and notes
- High-level methods or hooks to embed Qt plugins in the bundle (needed by PySide2/PyQt5) are missing.
- (*)
win32wheels are provided without testing. Users are encouraged to use thewin_amd64wheels (see #157).
Credits
Further informations about the original development of py2exe and other
usage guidelines can be found in the original README.
Metadata
Release files for py2exe 0.14.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 1.2 MB
Release files / py2exe-0.14.2.0-cp314-cp314-win_amd64.whl
| Download URL | py2exe-0.14.2.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 123.6 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4a8e5ab9e74dbc19c725c623900da72aedd13210b1637ad8fbe39ab08480e838
|
|
BLAKE2b-256 checksum How to use checksums |
0335fa68f539714a2053cb998ce2564f119f30a7fee7142cb32f117d79acb836
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / py2exe-0.14.2.0-cp314-cp314-win32.whl
| Download URL | py2exe-0.14.2.0-cp314-cp314-win32.whl |
|---|---|
| Size | 116.1 kB |
| Tags | CPython 3.14 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
2340abbb4f97360b3c52e30f1a683632bbd3c0bcb6af7bbc275eb249a56d0d54
|
|
BLAKE2b-256 checksum How to use checksums |
268033d5a9e31e827ad5cd1cfab34a71930dc248feb5c0894eecaef23118b067
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / py2exe-0.14.2.0-cp313-cp313-win_amd64.whl
| Download URL | py2exe-0.14.2.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 121.8 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f49cde0630200d2623fa76ddf7deb0a860df49968ed533ab2b88301864fdab95
|
|
BLAKE2b-256 checksum How to use checksums |
7bc9a595047deb68bf3dc6825c714afe57d8f90f7b02ba661fe09b9a0d0a28c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / py2exe-0.14.2.0-cp313-cp313-win32.whl
| Download URL | py2exe-0.14.2.0-cp313-cp313-win32.whl |
|---|---|
| Size | 114.3 kB |
| Tags | CPython 3.13 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
cc32aa98322862eed064f0410918351f0236406055455ae930c5a3a97321fae3
|
|
BLAKE2b-256 checksum How to use checksums |
f1f6fe99a96bca5bfc00b94bdfaa28a0dc56e581cc63ab04034ff5aef5a32299
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / py2exe-0.14.2.0-cp312-cp312-win_amd64.whl
| Download URL | py2exe-0.14.2.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 122.0 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
44919f5dcbd5fcc7d1eb818debd144fb0c8fa5db1a9d98cc5d1b3638743949f6
|
|
BLAKE2b-256 checksum How to use checksums |
0e01b49d2033c91d578c1b1b097a5becd518268ea2ce392d94831f648bee549b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / py2exe-0.14.2.0-cp312-cp312-win32.whl
| Download URL | py2exe-0.14.2.0-cp312-cp312-win32.whl |
|---|---|
| Size | 114.4 kB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
7e7d80661886ea6f43a2f108f1c6242c821f88533da9eb8038f6e36a085016e3
|
|
BLAKE2b-256 checksum How to use checksums |
f1709ccabe50f03d57786252f0873e2599781a80dd8daded99367f015d44c7aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / py2exe-0.14.2.0-cp311-cp311-win_amd64.whl
| Download URL | py2exe-0.14.2.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 121.9 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
45b8e576acc305f3bcbd0af793f0ac92df25113c88036e06bedb24310c2c8245
|
|
BLAKE2b-256 checksum How to use checksums |
80abdf712ffbc4d8bf66c8afbdff7888bcc29e451df0c534315f0b36add6febe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / py2exe-0.14.2.0-cp311-cp311-win32.whl
| Download URL | py2exe-0.14.2.0-cp311-cp311-win32.whl |
|---|---|
| Size | 114.3 kB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
974cfc7c2e1286bbf86752429610aa2982ab6d26e83aa45f4c47c7df4ba22491
|
|
BLAKE2b-256 checksum How to use checksums |
1e98d6dad49965d7ee5dd5f6811e835878db491af3317ae6b2ea3ecc0697ac88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / py2exe-0.14.2.0-cp310-cp310-win_amd64.whl
| Download URL | py2exe-0.14.2.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 122.1 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b40940dc4a8fc6542c6bb5d5f7f7aa36ab06892ce6f53c194b3b6991e747a366
|
|
BLAKE2b-256 checksum How to use checksums |
68bd54f4e41d72c2ce729d016f2feb48c7d5fb9dc55cc8a28f1f26f848afa2f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / py2exe-0.14.2.0-cp310-cp310-win32.whl
| Download URL | py2exe-0.14.2.0-cp310-cp310-win32.whl |
|---|---|
| Size | 114.4 kB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
1ebaf0a08f692f7e2ab871d863d7b2b4040e0d4edbb2e7ae290acbc58d7eaa70
|
|
BLAKE2b-256 checksum How to use checksums |
067e3a4c7ee62a62ed85a2d5903f24cfc5f392ebc4d2f753c8658f83480db298
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Security for py2exe 0.14.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.