Skip to main content

PyInstaller bundles a Python application and all its dependencies into a single package.

Project description

PyPI PyPI - Python Version Read the Docs (version) PyPI - Downloads

PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules.

Documentation:

https://pyinstaller.org/

Code:

https://github.com/pyinstaller/pyinstaller

PyInstaller reads a Python script written by you. It analyzes your code to discover every other module and library your script needs in order to execute. Then it collects copies of all those files – including the active Python interpreter! – and puts them with your script in a single folder, or optionally in a single executable file.

PyInstaller is tested against Windows, macOS, and GNU/Linux. However, it is not a cross-compiler: to make a Windows app you run PyInstaller in Windows; to make a GNU/Linux app you run it in GNU/Linux, etc. PyInstaller has been used successfully with AIX, Solaris, FreeBSD and OpenBSD, but is not tested against them as part of the continuous integration tests.

Main Advantages

  • Works out-of-the-box with any Python version 3.8-3.12.

  • Fully multi-platform, and uses the OS support to load the dynamic libraries, thus ensuring full compatibility.

  • Correctly bundles the major Python packages such as numpy, PyQt5, PySide2, PyQt6, PySide6, wxPython, matplotlib and others out-of-the-box.

  • Compatible with many 3rd-party packages out-of-the-box. (All the required tricks to make external packages work are already integrated.)

  • Works with code signing on macOS.

  • Bundles MS Visual C++ DLLs on Windows.

Installation

PyInstaller is available on PyPI. You can install it through pip:

pip install pyinstaller

Requirements and Tested Platforms

  • Python:
    • 3.8-3.12. Note that Python 3.10.0 contains a bug making it unsupportable by PyInstaller. PyInstaller will also not work with beta releases of Python 3.13.

  • Windows (32bit/64bit/ARM64):
    • PyInstaller should work on Windows 7 or newer, but we only officially support Windows 8+.

    • Support for Python installed from the Windows store without using virtual environments requires PyInstaller 4.4 or later.

  • Linux:
    • GNU libc based distributions on architectures x86_64, aarch64, i686, ppc64le, s390x.

    • musl libc based distributions on architectures x86_64, aarch64.

    • ldd: Console application to print the shared libraries required by each program or shared library. This typically can be found in the distribution-package glibc or libc-bin.

    • objdump: Console application to display information from object files. This typically can be found in the distribution-package binutils.

    • objcopy: Console application to copy and translate object files. This typically can be found in the distribution-package binutils, too.

    • Raspberry Pi users on armv5-armv7 should add piwheels as an extra index url then pip install pyinstaller as usual.

  • macOS (x86_64 or arm64):
    • macOS 10.15 (Catalina) or newer.

    • Supports building universal2 applications provided that your installation of Python and all your dependencies are also compiled universal2.

Usage

Basic usage is very simple, just run it against your main script:

pyinstaller /path/to/yourscript.py

For more details, see the manual.

Untested Platforms

The following platforms have been contributed and any feedback or enhancements on these are welcome.

  • FreeBSD
    • ldd

  • Solaris
    • ldd

    • objdump

  • AIX
    • AIX 6.1 or newer. PyInstaller will not work with statically linked Python libraries.

    • ldd

  • Linux on any other libc implementation/architecture combination not listed above.

Before using any contributed platform, you need to build the PyInstaller bootloader. This will happen automatically when you pip install pyinstaller provided that you have an appropriate C compiler (typically either gcc or clang) and zlib’s development headers already installed.

Support

Changes in this Release

You can find a detailed list of changes in this release in the Changelog section of the manual.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyinstaller-6.6.0.tar.gz (4.2 MB view details)

Uploaded Source

Built Distributions

pyinstaller-6.6.0-py3-none-win_arm64.whl (1.2 MB view details)

Uploaded Python 3 Windows ARM64

pyinstaller-6.6.0-py3-none-win_amd64.whl (1.3 MB view details)

Uploaded Python 3 Windows x86-64

pyinstaller-6.6.0-py3-none-win32.whl (1.2 MB view details)

Uploaded Python 3 Windows x86

pyinstaller-6.6.0-py3-none-musllinux_1_1_x86_64.whl (682.7 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ x86-64

pyinstaller-6.6.0-py3-none-musllinux_1_1_aarch64.whl (685.3 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

pyinstaller-6.6.0-py3-none-manylinux2014_s390x.whl (681.1 kB view details)

Uploaded Python 3

pyinstaller-6.6.0-py3-none-manylinux2014_i686.whl (685.5 kB view details)

Uploaded Python 3

pyinstaller-6.6.0-py3-none-macosx_10_13_universal2.whl (959.8 kB view details)

Uploaded Python 3 macOS 10.13+ universal2 (ARM64, x86-64)

File details

Details for the file pyinstaller-6.6.0.tar.gz.

File metadata

  • Download URL: pyinstaller-6.6.0.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for pyinstaller-6.6.0.tar.gz
Algorithm Hash digest
SHA256 be6bc2c3073d3e84fb7148d3af33ce9b6a7f01cfb154e06314cd1d4c05798a32
MD5 2343da45ab37cf3d715c57df2868d571
BLAKE2b-256 19f04213fadbae8ab5945786c4020f7cb6202e828d90df05be8f2dbc9395bcd9

See more details on using hashes here.

File details

Details for the file pyinstaller-6.6.0-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for pyinstaller-6.6.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 abbd591967593dab264bcc3bcb2466c0a1582f19a112e37e916c4212069c7933
MD5 5e32776eb5b2d2eba4957ac58df682b0
BLAKE2b-256 64be9df3db6fe36497953559c685721aaf7d45bbbf9bf443b63689609d0b3d9a

See more details on using hashes here.

File details

Details for the file pyinstaller-6.6.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyinstaller-6.6.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e2f55fbbdf8a99ea84b39bc5669a68624473c303486d7eb2cd9063b339f0aa28
MD5 167044253c21addef177fce6fbb16f0b
BLAKE2b-256 63d29e0c3cbbc9734797aa073cb856ad067e274ae5db83fac5fb990d948a0c37

See more details on using hashes here.

File details

Details for the file pyinstaller-6.6.0-py3-none-win32.whl.

File metadata

  • Download URL: pyinstaller-6.6.0-py3-none-win32.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for pyinstaller-6.6.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 cfe3ed214601de0723cb660994b44934efacb77a1cf0e4cc5133da996bcf36ce
MD5 4b29b256655ec7d59b6b2e82ed1146ec
BLAKE2b-256 ec0dd1cbb2e62f71e3f38c092a3f55ee534354f16566faa17dd273d997830a66

See more details on using hashes here.

File details

Details for the file pyinstaller-6.6.0-py3-none-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyinstaller-6.6.0-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 00996d2090734d9ae4a1e53ed40351b07d593c37118d3e0d435bbcfa8db9edee
MD5 0f90e98e76ed4c432055d7f6d7f28a6e
BLAKE2b-256 fd1f8aa30fd6228cb2429b5866d3dcad96d6e83f34969e2363ce784f88b08b6a

See more details on using hashes here.

File details

Details for the file pyinstaller-6.6.0-py3-none-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for pyinstaller-6.6.0-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 b7cab21db6fcfbdab47ee960239d1b44cd95383a4463177bd592613941d67959
MD5 d3c752fd8ccbef7ce793602f31c20844
BLAKE2b-256 8a33aaf0a62aa8224b3bb080547a43ba729a3aeb627c561274a1a65ad1363ff6

See more details on using hashes here.

File details

Details for the file pyinstaller-6.6.0-py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyinstaller-6.6.0-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 00d81ddeee97710245a7ed03b0f9d5a4daf6c3a07adf978487b10991e1e20470
MD5 8abfbf952e4971eb476c43422679dd1e
BLAKE2b-256 31c64067011e0f64370ed155e8a151c6ec5d927114f42cc2ee3eaef0adc3afe5

See more details on using hashes here.

File details

Details for the file pyinstaller-6.6.0-py3-none-manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for pyinstaller-6.6.0-py3-none-manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 97197593344f11f3dd2bdadbab14c61fbc4cdf9cc692a89b047cb671764c1824
MD5 a33127fac6e9570f0be9e1cb6d614c59
BLAKE2b-256 ee8a92c41c97a45eb3dcf7a6b8316e3bbbfd6402eeafd6f94245cd9169e6dad1

See more details on using hashes here.

File details

Details for the file pyinstaller-6.6.0-py3-none-manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for pyinstaller-6.6.0-py3-none-manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 7c4a55a5d872c118bc7a5e641c2df46ad18585c002d96adad129b4ee8c104463
MD5 0e7aa0e09d48e8a09f8c6baf9dfb80ae
BLAKE2b-256 4a86889d692607d2a80ed759dad928e029d30908be83fe94cc295e797aa6b5d1

See more details on using hashes here.

File details

Details for the file pyinstaller-6.6.0-py3-none-manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyinstaller-6.6.0-py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 1fc15e8cebf76361568359a40926aa5746fc0a84ca365fb2ac6caeea014a2cd3
MD5 39dc46a4301a443d0a4367afa1c3b189
BLAKE2b-256 d0a30cadef149e5bded6f9a338d10761b999310f810c0ff39a579b43c1d755cf

See more details on using hashes here.

File details

Details for the file pyinstaller-6.6.0-py3-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyinstaller-6.6.0-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2aa771693ee3e0a899be3e9d946a24eab9896a98d0d4035f05a22f1193004cfb
MD5 7347cae0ebe77be9930e9fd473116cd0
BLAKE2b-256 17f796ef836a061a58c0b482bdab48933fd291e79b7c749532ca223e6521626c

See more details on using hashes here.

File details

Details for the file pyinstaller-6.6.0-py3-none-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for pyinstaller-6.6.0-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 d2705efe79f8749526f65c4bce70ae88eea8b6adfb051f123122e86542fe3802
MD5 ac7b25461fa43326931248f8ad606a8f
BLAKE2b-256 1929d24aa7abe3cb9a1386130b073c4136546c4bc0da7c96bba1621f6198bfc9

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page