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.4.0.tar.gz (4.2 MB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3 Windows ARM64

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

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

pyinstaller-6.4.0-py3-none-musllinux_1_1_x86_64.whl (670.8 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ x86-64

pyinstaller-6.4.0-py3-none-musllinux_1_1_aarch64.whl (673.6 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

pyinstaller-6.4.0-py3-none-manylinux2014_s390x.whl (669.3 kB view details)

Uploaded Python 3

pyinstaller-6.4.0-py3-none-manylinux2014_i686.whl (673.7 kB view details)

Uploaded Python 3

pyinstaller-6.4.0-py3-none-macosx_10_13_universal2.whl (947.2 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for pyinstaller-6.4.0.tar.gz
Algorithm Hash digest
SHA256 1bf608ed947b58614711275a7ff169289b32560dc97ec748ebd5fa8bdec80649
MD5 0a875e26e99b1af5aa3f33fc53b99ed5
BLAKE2b-256 835c752340e73c195e21112eaec094d2d176705e4c18dc42a8357b68bb0dd693

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.4.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 11e6da6a6e441379352ee460a8880f2633dac91dac0f5a9eeff5d449d459b046
MD5 307a739b15fa91049b928284926d6fd2
BLAKE2b-256 85d304748441510a6d5ccb1e5fd3b75d07c30931be8dea3b87a54d0a2214ff53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.4.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ec8a08c983e3febb0247893cd9bd59f55b6767a1f649cb41a0a129b8f04ff2cb
MD5 6d232ac4b3423ffc1d0695b871fbe7ab
BLAKE2b-256 922a25cc187d435fb94e6dae783bbb49de2df9cce61c252956e50808cc27998e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyinstaller-6.4.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 c7bc0fbea8a9010484cfa7d3856416003af73271f03ca3da4bc0eaf14680ad17
MD5 0d0ef976be64d12f39f85fb09a7169dd
BLAKE2b-256 dc498a38b5536f10adf914ae4c7ec0a26044a2e68be0a46c9544fa3eee92f86e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.4.0-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 e07cff584600647af7dc279dd04c60cd1b4b1b41947b0753f8fcf1969300a583
MD5 7fd0c1ecc4de47d315312d269148eee0
BLAKE2b-256 8ecf338d81e076d73c9a81740c0a08d2b7bf33ed73b5d8ac31065531237699c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.4.0-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 78fb66ca753ef8becdf059eaa1e764d384cacb8c2ec76800126f8c9ef6d19a50
MD5 aa5a3d291aaf5c40aeba325c1856a77b
BLAKE2b-256 300b2d5dd0b5f2c4d0312d930b9542707b0b228981b65ced1fe8290aefd87b56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.4.0-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e3e1e6922a4260dcacf6f5655b0ca857451e05ac502d01642935d0f2873ad3c7
MD5 1be372bfa82c5d09dd5a92e275370808
BLAKE2b-256 2e6f9785f56521f7d0e4bd6ceeee6e865b5d51fcf32b7a3807a416318e86a537

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.4.0-py3-none-manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 3ae62cf8858ec4dc54df6fa03d29bc78297e3c87caf532887eae8c3893be0789
MD5 95d42c2da1d9d48853e45eb277749a8b
BLAKE2b-256 cb71dbf0878b35f03bfb6d5e464b930301d929cac1ac12ec4241817f78b283fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.4.0-py3-none-manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 28b98fa3c74602bdc4c5a7698e907f31e714cc40a13f6358082bcbc74ddab35c
MD5 bd3b77b77b8325c83d28f5cd8967503f
BLAKE2b-256 26126fee6bad9510ad7b46d2001f2e40c9dc390d39b1d130ddc68b183a94eda7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.4.0-py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 a37f83850cb150ad1e00fe92acecc4d39b8e10162a1850a5836a05fcb2daa870
MD5 80e2c58537566e51dfbbd90edc8ac36e
BLAKE2b-256 32f36a28769f848ef26f9248e75497ce418960db19cbf28e64b429cc073608aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.4.0-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3127724d1841f785a9916d7b4cfd9595f359925e9ce7d137a16db8c29ca8453b
MD5 6f9d4bb57dc77fd2b9151b8614d75482
BLAKE2b-256 4b00c3a48d0aa8a06dc9608cfdb223f9960d0c9e8423076896a1c7759cb1bef9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.4.0-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 a2e63fa71784f290bbf79b31b60a27c45b17a18b8c7f910757f9474e0c12c95d
MD5 88a9a9a77dcf1b3c7fd4173776a15578
BLAKE2b-256 1b3736a34274525c2a7aa22d914ea58419607d64224056e91b95b1529f7d9448

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