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

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.13.0.0-cp311-cp311-win_amd64.whl (153.6 kB view details)

Uploaded CPython 3.11 Windows x86-64

py2exe-0.13.0.0-cp311-cp311-win32.whl (145.2 kB view details)

Uploaded CPython 3.11 Windows x86

py2exe-0.13.0.0-cp310-cp310-win_amd64.whl (153.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

py2exe-0.13.0.0-cp310-cp310-win32.whl (145.3 kB view details)

Uploaded CPython 3.10 Windows x86

py2exe-0.13.0.0-cp39-cp39-win_amd64.whl (153.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

py2exe-0.13.0.0-cp39-cp39-win32.whl (145.3 kB view details)

Uploaded CPython 3.9 Windows x86

py2exe-0.13.0.0-cp38-cp38-win_amd64.whl (153.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

py2exe-0.13.0.0-cp38-cp38-win32.whl (145.3 kB view details)

Uploaded CPython 3.8 Windows x86

File details

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

File metadata

  • Download URL: py2exe-0.13.0.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 153.6 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.13.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 da32760a4b479eb4ba6c2638a02a9b1c1b413b7975d5ffa097558811047a9a8b
MD5 ad5009cfcdbe8637ac7e643a76c4ceee
BLAKE2b-256 1a644f69045c8196c0c3cd2dc3a932d9d21cc01460f0b0946110d0a46a7e9297

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.13.0.0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 145.2 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.13.0.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6e47a457fd0f191eeb91f928c271536f71e643571d1a0da8cc2ee8f617190ff1
MD5 a8948dd6f452d00729dafefb80911bc6
BLAKE2b-256 3b40b58c075d5473adc3a8a60de04c8188fc29698aae5184543863c9fd6ecd69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.13.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 153.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.13.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 07ae96b371f9af145a47ce5486eafe693842e7c77cf8830fa1cb688ed53191fd
MD5 200cc27a55960c8130431c9d5f544d3b
BLAKE2b-256 fb8eb1b26e16f398a5a46558f292e183961c7dbb1b4df6a0c355a3447714c8d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.13.0.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 145.3 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.13.0.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 dd7607f35008e8f71f7c68a24233ea1640eb5a4f09518628939a5a1c8fa5c0cc
MD5 62a08e6c913f841550470a3c784d2e1c
BLAKE2b-256 2d36c1d11f57fe2c15187ca297488dd911e058efe3f2726a0be3e2065a641feb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.13.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 153.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.13.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0094278df7af3ff0f8603067a2c19b9bc6beecd6a804b87c14b2f1d16da260f4
MD5 700a6105f6635412c9cd856d51bf89eb
BLAKE2b-256 b671b7208fc643135b0d4c3072d91d34981fc7ef5375a6d9bcfc6bc45e422fd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.13.0.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 145.3 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.13.0.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e7a7f1e061d1a925d83c687764f3550ecdd15057e49d2afb7341b96fae66dac4
MD5 3c2b1d699fcfbd506b2d424c345ad8f7
BLAKE2b-256 b9fd4169691eeab2a6e37c560c281c037a17a233a9390d3e95ac28dbd604c49f

See more details on using hashes here.

File details

Details for the file py2exe-0.13.0.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: py2exe-0.13.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 153.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.13.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c3f56edda962b4e1a90d6502277bf4b7cb195a8fc55f8e355f76928d9b7bbb9c
MD5 4a39a65dd0870bd3a80f42efeb90da00
BLAKE2b-256 63177052aa6dc318635493b617c3525a61f74c52d91769820c771780b73d1797

See more details on using hashes here.

File details

Details for the file py2exe-0.13.0.0-cp38-cp38-win32.whl.

File metadata

  • Download URL: py2exe-0.13.0.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 145.3 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.13.0.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dfe70625c5dac1bd3d48006703ceb69bbe8ec6b4ea98e47388b0a8b1dced81b4
MD5 97d08f6040f7a8ac7ba82cd9316231f8
BLAKE2b-256 3a750d82b6ae1d732c4857f79b44284b48fd34cf99f471727ad5da143098d488

See more details on using hashes here.

Supported by

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