Skip to main content

Build standalone executables for Windows

Project description

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 freeze with the service= argument
  • Deprecate bundle_files<3 and zipfile=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 packaging to 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, and scipy hooks

Version 0.14.0.0:

  • Add support for Python 3.12 and 3.13
  • Drop support for Python 3.8
  • Values of bundle_files lower than 3 are not supported in Python 3.12 and newer. See issue #225 for further details
  • Fixes for the matplotlib, numpy, and tkinter hooks

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 setuptools v72
  • fix the matplotlib, numpy, and scipy hooks
  • fix py2exe wheels build with setuptools v70.0.0

Version 0.13.0.1:

  • improved the hook for pkg_resources to detect its vendored content automatically
  • the matplotlib hook now does not exclude wx automatically
  • adapted the hook for matplotlib to support their use of delvewheel
  • adapted the hooks for numpy and pandas to support the new .libs location

Version 0.13.0.0:

  • Add support for Python 3.11
  • Drop support for Python 3.7
  • Drop support for win32 wheels
  • Remove build_exe command line interface. Please use the py2exe.freeze API.

Version 0.12.0.2:

  • Support scipy versions newer than 1.9.2.
  • Fixed documentation for the py2exe.freeze API.

Version 0.12.0.1:

  • Fixed an issue that prevented builds via the deprecated setup.py API.

Version 0.12.0.0:

  • Introduce the new py2exe.freeze API. Documentation can be found here.
  • Use of the setup.py py2exe command and of distutils is 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 winrt and passlib.

Version 0.11.1.1:

  • The log file for windows apps is now stored in %APPDATA% by default
  • ModuleFinder now raises an explicit error if a required module is in excludes
  • Restore hook functionality for pkg_resources
  • The Stderr.write method 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 optimize option when six was in the bundle
  • Fixed a bug that ignored the optimize flag 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 mf310 written as a wrapper around CPython modulefinder.ModuleFinder
  • Add support for Python 3.10
  • New hook for scipy
  • zipextimporter can now be built as a standalone extension via its own setup script

Version 0.10.4.1:

  • ModuleFinder: add support for the pkg_resources.extern.VendorImporter loader
  • New hooks for pkg_resources and infi

Version 0.10.4.0:

  • zipextimporter supports external modules that use multi-phase initialization (PEP 489)
  • New hook for selenium
  • dllfinder provides a new method to add data files in the zip archive

Version 0.10.3.1:

  • New hook for pycryptodomex
  • ModuleFinder: respect excludes list in import_package
  • Updated hook for matplotlib >= 3.4.0

Version 0.10.3.0:

  • New hook for supporting matplotlib 3.2 and higher.
  • Fix for including implicit namespace packages as per PEP420.

Version 0.10.2.1:

  • Patch MyLoadLibrary to support ssl with bundle_files=0.

Version 0.10.2.0:

  • New module finder with support for implicit namespace packages (PEP 420).
  • DLLFinder automatically 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 pycryptodome and shapely.

Version 0.10.1.0:

  • Add support for Python 3.9.
  • Drop support for Python 3.5.
  • New hooks for urllib3 and pandas.

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, and six.
  • build_exe: the zipfile=None option 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.
  • (*) win32 wheels are provided without testing. Users are encouraged to use the win_amd64 wheels (see #157).

Credits

Further informations about the original development of py2exe and other usage guidelines can be found in the original README.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

py2exe-0.14.2.0-cp314-cp314-win_amd64.whl (123.6 kB view details)

Uploaded CPython 3.14Windows x86-64

py2exe-0.14.2.0-cp314-cp314-win32.whl (116.1 kB view details)

Uploaded CPython 3.14Windows x86

py2exe-0.14.2.0-cp313-cp313-win_amd64.whl (121.8 kB view details)

Uploaded CPython 3.13Windows x86-64

py2exe-0.14.2.0-cp313-cp313-win32.whl (114.3 kB view details)

Uploaded CPython 3.13Windows x86

py2exe-0.14.2.0-cp312-cp312-win_amd64.whl (122.0 kB view details)

Uploaded CPython 3.12Windows x86-64

py2exe-0.14.2.0-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

py2exe-0.14.2.0-cp311-cp311-win_amd64.whl (121.9 kB view details)

Uploaded CPython 3.11Windows x86-64

py2exe-0.14.2.0-cp311-cp311-win32.whl (114.3 kB view details)

Uploaded CPython 3.11Windows x86

py2exe-0.14.2.0-cp310-cp310-win_amd64.whl (122.1 kB view details)

Uploaded CPython 3.10Windows x86-64

py2exe-0.14.2.0-cp310-cp310-win32.whl (114.4 kB view details)

Uploaded CPython 3.10Windows x86

File details

Details for the file py2exe-0.14.2.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: py2exe-0.14.2.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 123.6 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.2.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 4a8e5ab9e74dbc19c725c623900da72aedd13210b1637ad8fbe39ab08480e838
MD5 27ecf00a0afb2c162716e9ed65f58b64
BLAKE2b-256 0335fa68f539714a2053cb998ce2564f119f30a7fee7142cb32f117d79acb836

See more details on using hashes here.

File details

Details for the file py2exe-0.14.2.0-cp314-cp314-win32.whl.

File metadata

  • Download URL: py2exe-0.14.2.0-cp314-cp314-win32.whl
  • Upload date:
  • Size: 116.1 kB
  • Tags: CPython 3.14, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.2.0-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 2340abbb4f97360b3c52e30f1a683632bbd3c0bcb6af7bbc275eb249a56d0d54
MD5 ed47c31f8d0779700900016cb40a0e0c
BLAKE2b-256 268033d5a9e31e827ad5cd1cfab34a71930dc248feb5c0894eecaef23118b067

See more details on using hashes here.

File details

Details for the file py2exe-0.14.2.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: py2exe-0.14.2.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 121.8 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f49cde0630200d2623fa76ddf7deb0a860df49968ed533ab2b88301864fdab95
MD5 a0fbb5fbbb7cd77581f4ee4a7f3eefbe
BLAKE2b-256 7bc9a595047deb68bf3dc6825c714afe57d8f90f7b02ba661fe09b9a0d0a28c7

See more details on using hashes here.

File details

Details for the file py2exe-0.14.2.0-cp313-cp313-win32.whl.

File metadata

  • Download URL: py2exe-0.14.2.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 114.3 kB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.2.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 cc32aa98322862eed064f0410918351f0236406055455ae930c5a3a97321fae3
MD5 c88b81f966cb7dcade72daa0855357a6
BLAKE2b-256 f1f6fe99a96bca5bfc00b94bdfaa28a0dc56e581cc63ab04034ff5aef5a32299

See more details on using hashes here.

File details

Details for the file py2exe-0.14.2.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: py2exe-0.14.2.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 122.0 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 44919f5dcbd5fcc7d1eb818debd144fb0c8fa5db1a9d98cc5d1b3638743949f6
MD5 374e4308e05537fc45fc51b3c3ac2fda
BLAKE2b-256 0e01b49d2033c91d578c1b1b097a5becd518268ea2ce392d94831f648bee549b

See more details on using hashes here.

File details

Details for the file py2exe-0.14.2.0-cp312-cp312-win32.whl.

File metadata

  • Download URL: py2exe-0.14.2.0-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.2.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7e7d80661886ea6f43a2f108f1c6242c821f88533da9eb8038f6e36a085016e3
MD5 08d58c797a1127ec8aae915936328e6a
BLAKE2b-256 f1709ccabe50f03d57786252f0873e2599781a80dd8daded99367f015d44c7aa

See more details on using hashes here.

File details

Details for the file py2exe-0.14.2.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: py2exe-0.14.2.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 121.9 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 45b8e576acc305f3bcbd0af793f0ac92df25113c88036e06bedb24310c2c8245
MD5 afcf07ed2c67bc25f11f3c8bb385c907
BLAKE2b-256 80abdf712ffbc4d8bf66c8afbdff7888bcc29e451df0c534315f0b36add6febe

See more details on using hashes here.

File details

Details for the file py2exe-0.14.2.0-cp311-cp311-win32.whl.

File metadata

  • Download URL: py2exe-0.14.2.0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 114.3 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.2.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 974cfc7c2e1286bbf86752429610aa2982ab6d26e83aa45f4c47c7df4ba22491
MD5 592e36446460d969d44e0a04c8a2fc8b
BLAKE2b-256 1e98d6dad49965d7ee5dd5f6811e835878db491af3317ae6b2ea3ecc0697ac88

See more details on using hashes here.

File details

Details for the file py2exe-0.14.2.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: py2exe-0.14.2.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 122.1 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b40940dc4a8fc6542c6bb5d5f7f7aa36ab06892ce6f53c194b3b6991e747a366
MD5 abcde50359ffea0a016431d0fa8824a5
BLAKE2b-256 68bd54f4e41d72c2ce729d016f2feb48c7d5fb9dc55cc8a28f1f26f848afa2f7

See more details on using hashes here.

File details

Details for the file py2exe-0.14.2.0-cp310-cp310-win32.whl.

File metadata

  • Download URL: py2exe-0.14.2.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.2.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1ebaf0a08f692f7e2ab871d863d7b2b4040e0d4edbb2e7ae290acbc58d7eaa70
MD5 7c04b8627ab18120bb2798d6ab15e175
BLAKE2b-256 067e3a4c7ee62a62ed85a2d5903f24cfc5f392ebc4d2f753c8658f83480db298

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page