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

Uploaded CPython 3.14Windows x86-64

py2exe-0.14.1.0-cp314-cp314-win32.whl (115.0 kB view details)

Uploaded CPython 3.14Windows x86

py2exe-0.14.1.0-cp313-cp313-win_amd64.whl (120.7 kB view details)

Uploaded CPython 3.13Windows x86-64

py2exe-0.14.1.0-cp313-cp313-win32.whl (113.2 kB view details)

Uploaded CPython 3.13Windows x86

py2exe-0.14.1.0-cp312-cp312-win_amd64.whl (120.9 kB view details)

Uploaded CPython 3.12Windows x86-64

py2exe-0.14.1.0-cp312-cp312-win32.whl (113.3 kB view details)

Uploaded CPython 3.12Windows x86

py2exe-0.14.1.0-cp311-cp311-win_amd64.whl (120.8 kB view details)

Uploaded CPython 3.11Windows x86-64

py2exe-0.14.1.0-cp311-cp311-win32.whl (113.2 kB view details)

Uploaded CPython 3.11Windows x86

py2exe-0.14.1.0-cp310-cp310-win_amd64.whl (120.9 kB view details)

Uploaded CPython 3.10Windows x86-64

py2exe-0.14.1.0-cp310-cp310-win32.whl (113.3 kB view details)

Uploaded CPython 3.10Windows x86

File details

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

File metadata

  • Download URL: py2exe-0.14.1.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 122.4 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.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 aac6073873e1a4fb156d07c82bfeeb3d29f9fef836eba4155e6ec4f027c450c7
MD5 2473380e869456060d090db2f5147e54
BLAKE2b-256 5273d19e4927f41f230fcb991f1510643331adab157cfb9fe14c9980958e3e29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.0-cp314-cp314-win32.whl
  • Upload date:
  • Size: 115.0 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.0-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 e302d4dfd1f3418e3b2f2ec01c5bac9bface07fdfe68ff37ae5e1ac95573877d
MD5 fa4bdd2e06e5f22de7f1ccddda6c84a3
BLAKE2b-256 e173341ddbebf1db2c59b5a6f05e1080c44a8d6439fe398d13cb00bda14df440

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 120.7 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.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 af982f84f58fb48cbf49a99d25e44dd0b5951b2700df3bd9c9ea5713df8a685f
MD5 5abf23026e9bd094d3fef0394af6d224
BLAKE2b-256 95642f6745cfc32023d1880d207318b61eeabb9231bacdcdffd5a4c8f1bc16b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 113.2 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.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 e3a25943f19996353f3c14c5194d7c84aa389395434e41d192f5b4de5a2f646d
MD5 ef1b43bf2447359ed4ef48fd87562aca
BLAKE2b-256 814c816ccc69e1a0a7927884aa855a6084ad4619dae9c8ff257f132e92d028d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 120.9 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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 91a7efb1fa5c75284510eeac191e8aeb8862283e3c9824ae783703b9f4be0f4e
MD5 142293f8dd44fb63b2e695bdce89c38a
BLAKE2b-256 731edef5c8fade8ad69380d4945d67fbd8bf8459a85958d94d6ef78aa05fd611

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.0-cp312-cp312-win32.whl
  • Upload date:
  • Size: 113.3 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.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2f2475460b16d24db9a30f82be7e28031ca461f4dc9dfd1ca9da813c656928f1
MD5 5fef1ee0c409cdc3d57266762d341a7a
BLAKE2b-256 40eff46223f1857784ba3ccc1f12aebdbdbf7993eecc19b2525812fbcdb415de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 120.8 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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 91032eb2d9f93b8cb21b985c595454a16581739b4ebf060ce42c98948ed276a0
MD5 f0586071666e48d7356dc00f56d9fb22
BLAKE2b-256 1d021a44fc1222bf27c7f3ac9c874af7a8cefd5d60f20e60c74315de0ab5151c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 113.2 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.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d4b2b8a26ea51c5fc6b736ed325648e6540813315b0f928c1b3171fa6643139f
MD5 4136759b60d3ea0c922658950acc854f
BLAKE2b-256 595536f3cb396d25dda59315da3f58692dda6d5077e475db63df3847a5613a87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 120.9 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.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 617205710c5b8a03f800c0297f14652d3b42aec755af785ef431b50f5248e478
MD5 492d45c08cdbada9f1dfc386940a4757
BLAKE2b-256 438142a19bffaeaf2f2963931b2c900c4bb2fbe781d058ab93c2b0f60d7e2720

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.14.1.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 113.3 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.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1a1e03b9de3982a5eefb2f240cb05895578b79a22c2d3c04a45d22699bcc44a8
MD5 0a09421ddf7b842f5e88fd6d4153be27
BLAKE2b-256 e8ee5117492ccf8b09e2fc44460a371e10e151fcaa5456974a8227085a9a561e

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