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.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

py2exe-0.14.0.0-cp313-cp313-win_amd64.whl (156.5 kB view details)

Uploaded CPython 3.13Windows x86-64

py2exe-0.14.0.0-cp313-cp313-win32.whl (149.0 kB view details)

Uploaded CPython 3.13Windows x86

py2exe-0.14.0.0-cp312-cp312-win_amd64.whl (156.7 kB view details)

Uploaded CPython 3.12Windows x86-64

py2exe-0.14.0.0-cp312-cp312-win32.whl (149.1 kB view details)

Uploaded CPython 3.12Windows x86

py2exe-0.14.0.0-cp311-cp311-win_amd64.whl (156.5 kB view details)

Uploaded CPython 3.11Windows x86-64

py2exe-0.14.0.0-cp311-cp311-win32.whl (149.0 kB view details)

Uploaded CPython 3.11Windows x86

py2exe-0.14.0.0-cp310-cp310-win_amd64.whl (156.7 kB view details)

Uploaded CPython 3.10Windows x86-64

py2exe-0.14.0.0-cp310-cp310-win32.whl (149.1 kB view details)

Uploaded CPython 3.10Windows x86

py2exe-0.14.0.0-cp39-cp39-win_amd64.whl (156.8 kB view details)

Uploaded CPython 3.9Windows x86-64

py2exe-0.14.0.0-cp39-cp39-win32.whl (149.1 kB view details)

Uploaded CPython 3.9Windows x86

File details

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

File metadata

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

File hashes

Hashes for py2exe-0.14.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ecf5a5e60aba6f66f99fe5a08d3dea3e1c2ee45f3da83ebe3eec961942c2cdf3
MD5 dd2aaa1629eac60ec0e740663e012ea3
BLAKE2b-256 00c1a2489ac7d7e38ccf0e8bce590078aefaec00f8e00923814307377f83c78a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for py2exe-0.14.0.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 5b1221a77a63d63eca7c901b80a2c033380c388615ab99245b1c85cb0ea00ebb
MD5 bb53a82281b967e02d4102923e771030
BLAKE2b-256 cbd178ae34c98c56e7b78b3da5765ad22e356d07d935b4cb55f9c5cb036c44cc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for py2exe-0.14.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c2df671724517c6fa45a139eddff6f20fcc83d393ebd66b10964ee36bc0f05b4
MD5 3d5f6dcfcea98b6cbd31dfc7bab84e05
BLAKE2b-256 ff0f68f3ceb0c957a808ce5bf73301710ae297fdd072df502a82b84283f80f25

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for py2exe-0.14.0.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 125b6ccaf4bd6b311d40066363384da5d1f1f27459a4cd141bd4203b74d33297
MD5 3cd3bb3026d1e19606b53c5b4ce67128
BLAKE2b-256 50f81406f8a984a0dea530c191d83e3366d6438cba7f04369f1a5046996db8c8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for py2exe-0.14.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 07dbb0957fe19df75851a1185179efc4c36f45ca10ff3ab6b5afd379235a692f
MD5 9c36d5891b9b28dfa52120670b53b218
BLAKE2b-256 7e05c042ebb9379655116540252d92ea718a55a1bac290840acedc9c368002e7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for py2exe-0.14.0.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2ad2d23ed121e91f4ddf37d2d6229c1b758f9ebeea3f5d62ffc17b3ab425b466
MD5 d5de3e194645d2a3ba2a84fdeef19ff2
BLAKE2b-256 3c03f6d1e17720dd7bba2a7e590a59abe7a65c12cc28ad7b38a9268bcab93155

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for py2exe-0.14.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3cbab7c15f59d28692115a0fd7075f2cb9d285fa4f5575caa1f9988a181641b1
MD5 cce35038ab640403e5d86fd60d7f8c20
BLAKE2b-256 79d6c25b25aaa87fa98abd3773e414b85163ef4db2835de2bec011d95b2f766c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for py2exe-0.14.0.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 05e33d96e8b5b4420a2e3454bc11ba609205f2b3e12c153413bc60f5a05d9b01
MD5 5f984859886894c83f0071a44e0309b2
BLAKE2b-256 5099e8c07f93c3bf2b5eea6419192b6dec20b19516e9c4da1718c3a55a460764

See more details on using hashes here.

File details

Details for the file py2exe-0.14.0.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: py2exe-0.14.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 156.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8cf8898abd80e9e2fae3d061889e55f28c9fa14006246e9352c042e0129aec15
MD5 c88d27ac8e447d03c3f64df61e2c496a
BLAKE2b-256 4479932036bef503646a5c340346f1d0d476ce4dc2992b27c3fffbb931b85f7b

See more details on using hashes here.

File details

Details for the file py2exe-0.14.0.0-cp39-cp39-win32.whl.

File metadata

  • Download URL: py2exe-0.14.0.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 149.1 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for py2exe-0.14.0.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9105fcd01863600dffbc1068ec08667894b16a35ff2c417c3a025731ac10f615
MD5 17510741f47a75d928fa6dc84b01d18a
BLAKE2b-256 9d636e5894404bd204332f9e98fa84f74346cb365ba5b5631e6985075a9fa7c2

See more details on using hashes here.

Supported by

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