Skip to main content

py2exe for Python 3

py2exe is a distutils extension which allows to build standalone Windows executable programs (32-bit and 64-bit) from Python scripts. Python versions included in the official development cycle are supported. py2exe can build console executables and windows (GUI) executables.

Development of py2exe is hosted here: https://github.com/py2exe/py2exe.

Changes

Detailed changelog is published on GitHub.

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

Using a setup-script

Documentation about the setup-script and other usage tips are in the wiki pages at http://www.py2exe.org.

Using the builder

The build_exe CLI is not actively supported at the moment. Users are encouraged to create their own setup.py files. Documentation on how to use the CLI can be found here.

Known issues

  • Building isapi extensions is not supported.
  • High-level methods or hooks to embed Qt plugins in the bundle (needed by PySide2/PyQt5) are missing.

Credits

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

Metadata

Release files for py2exe 0.11.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py2exe 0.11.1.0
File Size Uploaded
py2exe-0.11.1.0.tar.gz 120.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for py2exe 0.11.1.0
File
py2exe-0.11.1.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
py2exe-0.11.1.0-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details
py2exe-0.11.1.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
py2exe-0.11.1.0-cp39-cp39-win32.whl CPython 3.9 CPython 3.9 Windows x86-32 Details
py2exe-0.11.1.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
py2exe-0.11.1.0-cp38-cp38-win32.whl CPython 3.8 CPython 3.8 Windows x86-32 Details
py2exe-0.11.1.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
py2exe-0.11.1.0-cp37-cp37m-win32.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-32 Details

Total release size: 1.3 MB

Release files / py2exe-0.11.1.0.tar.gz

Download URL py2exe-0.11.1.0.tar.gz
Size 120.6 kB
Tags Source
SHA-256 checksum
How to use checksums
85f29507dc426202bceec940fdf2fb7d566008406995760f99e8b3e7fe834d6a
BLAKE2b-256 checksum
How to use checksums
d14ffa1bebb522c9b65086f7f76629efd98693887ef2c9300a1c4d864d909ff5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / py2exe-0.11.1.0-cp310-cp310-win_amd64.whl

Download URL py2exe-0.11.1.0-cp310-cp310-win_amd64.whl
Size 148.8 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
29707fbe1fe7670d6741cd1905bbf7368f1a5a98fa15524ef23aae2a88e4d465
BLAKE2b-256 checksum
How to use checksums
1b82ff784d0edbeb3700a60f5c53ab396f2755e1225277073c8066ed59a1a96e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / py2exe-0.11.1.0-cp310-cp310-win32.whl

Download URL py2exe-0.11.1.0-cp310-cp310-win32.whl
Size 141.3 kB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
7069b6ebc690f6f1b5ee8514a63f1c3765fa006cefc2e15aa306829b029b03a3
BLAKE2b-256 checksum
How to use checksums
a241c21b072f1a0cdf4720c605374aea195186ade43a4d3b1c8f40e39ee00c23
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / py2exe-0.11.1.0-cp39-cp39-win_amd64.whl

Download URL py2exe-0.11.1.0-cp39-cp39-win_amd64.whl
Size 148.8 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
329bcf5f2feaf99b21c9ef49ec8060cfdcb5671debbab6f53135ae53d491fc4d
BLAKE2b-256 checksum
How to use checksums
b2829afd2b5b92108d5d832d3b80042e415b998023f6063dc1ab9b3d5a89e9b5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / py2exe-0.11.1.0-cp39-cp39-win32.whl

Download URL py2exe-0.11.1.0-cp39-cp39-win32.whl
Size 141.2 kB
Tags CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
a03ba497f6eec4d0d41bd150ea611fb87db302a74a41d6826cb0445fdb418f41
BLAKE2b-256 checksum
How to use checksums
be937efc8041c2f063ac42e14af9e6da0c20d495974e7d8c401ace0e7e00c381
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / py2exe-0.11.1.0-cp38-cp38-win_amd64.whl

Download URL py2exe-0.11.1.0-cp38-cp38-win_amd64.whl
Size 148.8 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
19e5d6803501fb55a30759889446234e275b2e5da21a53ae847e2529dd23eb7b
BLAKE2b-256 checksum
How to use checksums
e78cd38dee6aba8b3568ad73770b5e2350963b13e4b39f87a0712823717b38a1
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / py2exe-0.11.1.0-cp38-cp38-win32.whl

Download URL py2exe-0.11.1.0-cp38-cp38-win32.whl
Size 141.2 kB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
a9d42bc5c6120bda01fbba553215e3dee7d0d2951d6fe30fc7c36176a46ae0a9
BLAKE2b-256 checksum
How to use checksums
0015eb4495a9250cd496b3f4a09550b453beb182ca2410e7f84c89fbb368b822
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / py2exe-0.11.1.0-cp37-cp37m-win_amd64.whl

Download URL py2exe-0.11.1.0-cp37-cp37m-win_amd64.whl
Size 148.8 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
9e29789b3e5a37fc376726062574607c9fe5ef88d0331d311871de4dda406717
BLAKE2b-256 checksum
How to use checksums
ef3880fbdc625fb19a26e66a9287f8890f0706cacbaf77b71aea73fc93ae3485
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / py2exe-0.11.1.0-cp37-cp37m-win32.whl

Download URL py2exe-0.11.1.0-cp37-cp37m-win32.whl
Size 141.2 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
37fb1f7ff73e252bfa21789d8448d3bcf521a0bc1edd2ee3734534a4b437bed0
BLAKE2b-256 checksum
How to use checksums
0dc071462ebf909976008bebad927f9e561b3c70163ece874048cf77593b706c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.11.1.0 This release

9 release files

0.6.9

0.6.8

0.6.6

0.6.5

0.6.3

0.6.1

0.5.2

0.5.0

0.3.4

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page