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.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.1.1-cp314-cp314-win_amd64.whl (122.7 kB view details)

Uploaded CPython 3.14Windows x86-64

py2exe-0.14.1.1-cp314-cp314-win32.whl (115.2 kB view details)

Uploaded CPython 3.14Windows x86

py2exe-0.14.1.1-cp313-cp313-win_amd64.whl (121.0 kB view details)

Uploaded CPython 3.13Windows x86-64

py2exe-0.14.1.1-cp313-cp313-win32.whl (113.5 kB view details)

Uploaded CPython 3.13Windows x86

py2exe-0.14.1.1-cp312-cp312-win_amd64.whl (121.2 kB view details)

Uploaded CPython 3.12Windows x86-64

py2exe-0.14.1.1-cp312-cp312-win32.whl (113.6 kB view details)

Uploaded CPython 3.12Windows x86

py2exe-0.14.1.1-cp311-cp311-win_amd64.whl (121.1 kB view details)

Uploaded CPython 3.11Windows x86-64

py2exe-0.14.1.1-cp311-cp311-win32.whl (113.5 kB view details)

Uploaded CPython 3.11Windows x86

py2exe-0.14.1.1-cp310-cp310-win_amd64.whl (121.2 kB view details)

Uploaded CPython 3.10Windows x86-64

py2exe-0.14.1.1-cp310-cp310-win32.whl (113.6 kB view details)

Uploaded CPython 3.10Windows x86

File details

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

File metadata

  • Download URL: py2exe-0.14.1.1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 122.7 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.1.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 8c39011d79899cfaa1e762b1186c15a25f5ec40df2f80900c569a4b821c1ff5b
MD5 e603084f3380474c952f95a2a165c744
BLAKE2b-256 3f998a95b97176a422bb6766b0d2c39c0cd06ec9dd065090054864b4fced66dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.1-cp314-cp314-win32.whl
  • Upload date:
  • Size: 115.2 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.1.1-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 8f14c19d73616b3c633c7cc5eedc7ddd8181f48c349c5d23c1c8d8068d158d00
MD5 06e1ea2f4db9a92227da7d7c62a8923d
BLAKE2b-256 d85e7ded2823e24c6ec114acca27a69808d4eace1a4c62189eda95f757659465

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 121.0 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.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b6ecc5184c118aef2baf5a54e11e5fcb08d4f7775210fe37dc1649cf4926e386
MD5 b9aa0c734457a6e443a0bd0ddf215716
BLAKE2b-256 3e0f4f00f663f13a5d07b44b23e366fd221f5d1f4ed7c2488a8259130c4a069b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.1-cp313-cp313-win32.whl
  • Upload date:
  • Size: 113.5 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.1.1-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 3fe5f8fa6cd986d97ffd116355a9ed807e23349ad3c108d7b43e90e51ef9d60d
MD5 d6f8029ec51b1c85e10bb901a5dcf55b
BLAKE2b-256 df7b630718ad481a3803e1339d263d4266f84a36cb2073d36eca71a25571777e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 121.2 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.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c15d46a7c2e74c16200ae5e9971f79866431a488658c35ffb89dc48c7e295e2c
MD5 6c9c42a87262dfa91f48c441334c17c5
BLAKE2b-256 038a7e7657b50cac88879bc204d1a4f47a198d655a81fd78b976ce4b81a86e66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.1-cp312-cp312-win32.whl
  • Upload date:
  • Size: 113.6 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.1.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2d147af5f0d95dd49960184690cdd558fa4af1f75ea22f51735a6f354b027c77
MD5 b942e627e6d650f88344fc1aab4c2078
BLAKE2b-256 a4d0c7d9e056524c5e609c9d6bbe08fae70c8d43d5169c2e8311ee35caebaae2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 121.1 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.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a810cfb73cb8a058aef0df0af5d080ba852613728c970720a0d523cb4a1b6e6b
MD5 d6efd3ed360292180c83cca0494b3634
BLAKE2b-256 bd8b156fc72846536a65ecfd7b203fce4540c561647b00e4464db8b45cba5974

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.1-cp311-cp311-win32.whl
  • Upload date:
  • Size: 113.5 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.1.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6f5dd97f701b09bd1ce142d07c977ca9c76b54213578ab16b846d178c99128eb
MD5 e0daf3373dd7c3c930a689962ecb81d0
BLAKE2b-256 033a71db5e460a59542abefb05a8da57cc9584fe7e28d7c743ed52f872cc4913

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 121.2 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.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2f9482366e5883cbd71d8637e5074377e6b60725ee15a90e1ee6ac7cb2849dc8
MD5 b97915a949cf86db0afde9c33cc4b8c7
BLAKE2b-256 a94e40b7c8494c3a1b931a6c8c4e0256ea2cb49aa9cb7a818ab8dbe8a82770a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.1-cp310-cp310-win32.whl
  • Upload date:
  • Size: 113.6 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.1.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0bd21173401774830cdebd32c08e93e53616d7477ca8c309c5980954e04fa10e
MD5 55bac84ab4a0d876014e66ecdef0ddd2
BLAKE2b-256 6109e1768d3fa16f86e0424a74e3155b45a6834758f90b4d1e9d4e6a157ca88a

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