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

Uploaded Source

Built Distributions

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

Uploaded Python 3 Windows ARM64

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

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

pyinstaller-6.7.0-py3-none-musllinux_1_1_x86_64.whl (683.2 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ x86-64

pyinstaller-6.7.0-py3-none-musllinux_1_1_aarch64.whl (685.7 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

pyinstaller-6.7.0-py3-none-manylinux2014_s390x.whl (681.5 kB view details)

Uploaded Python 3

pyinstaller-6.7.0-py3-none-manylinux2014_i686.whl (685.9 kB view details)

Uploaded Python 3

pyinstaller-6.7.0-py3-none-macosx_10_13_universal2.whl (960.3 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for pyinstaller-6.7.0.tar.gz
Algorithm Hash digest
SHA256 8f09179c5f3d1b4b8453ac61adfe394dd416f9fc33abd7553f77d4897bc3a582
MD5 e9481a4edac7ead4a1f41a544e0ce1c7
BLAKE2b-256 3ec87acd0d98bc71585a2ca08b959951a4a76d5289c9bef3d40ed434694a3ee4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.7.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 53038419ca09eea59de02dfb52453dd327983b0957821be610fb04cfd84676d0
MD5 0cbc7c268c97fef44f30d2536a44d523
BLAKE2b-256 1ed2ebbb05f7db0822f528b1da46ab33b8cbcd8b2c8ec9874be7912a5b9bfea3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.7.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a3f85935b40f89e717f1e67377d3bfc953060e5795828ecf5357e2c1f7aa52bf
MD5 cefbd080b6aa4bb11437f78ecb0fd747
BLAKE2b-256 d901c5a663940f3e05219db48af7a4e65960921dd71252ee0c81297661e60c39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-6.7.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.1.0 CPython/3.12.0

File hashes

Hashes for pyinstaller-6.7.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 73b94ce02b208c34eaabd032dd1522a3c03c0b3118a31bf7e4eafe7a9f4af2da
MD5 60667d2b53faa9915eb86f7925bd49da
BLAKE2b-256 f8a0756b69f4bf96fbd474586871cef992ac77654d507ad4adb62ffe5d3b67d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.7.0-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 1b6dd6a50a7315214d345875cd08f8aa71025e7ba6bfa0f95c09285585e8d372
MD5 9c88e30a33bcfafbc0494fc940e42e9c
BLAKE2b-256 4e577eb91334892c0753ea73c85eacc22a52fbb0d3ce3c2f6803937b81e62800

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.7.0-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 95efc2de7722213f376c5bac9620f390899f9a3c9eed70bd65adf29e2a085d5f
MD5 a7e6403321c2485bff1b784872312960
BLAKE2b-256 91f932e53f2b9846628b3a41bad81c0f4267f61782c1daf33458a2bdd2b082fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.7.0-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ff8ce04f1e5ab3a65d4a1ee6036cba648d0cdae6a7a33c6f0ca4ace46cdd43c
MD5 8021410a827d360f6d4f3e2dd34faa19
BLAKE2b-256 2ae09df946cd387947176f2dd449439f8de1d6f7e41bab0a460750cf19f3ea8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.7.0-py3-none-manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 5263ecbfd34a2297f0e5d41ecfcf7a6fb1ebbf60dbe0dc7c2d64f4a55871a99d
MD5 ea595e5f28681796b76b402be35c9455
BLAKE2b-256 4f69d75b389bf10b23d93b02cd3384be6599d3ba3c9d47d9c3139dccfa837f13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.7.0-py3-none-manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 fa552214a8cbb5bfe4621c46a73c3cce12f299a520aa5ac397dc18718278f03a
MD5 439c6e7fabb6e5199d873bda04b3348e
BLAKE2b-256 38c83bfda2a031a48a004b57d2e2f2144ea1bbd0b8ac65721b9ef0b681441d4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.7.0-py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 df1b66500a7def997790bdadc23c142a2f96585ccd440beac63b72a4f3e41684
MD5 c48fd4e071220131f9ca0fda397bcf05
BLAKE2b-256 2dcf1cd04a6745b5aa95c7688c820fc670b404ce2920ef26c71a3856826c23e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.7.0-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0756b3d4d3283ae2a5bda56abe479b80801ecafecdb3a96cd928542c2c75d016
MD5 68aeccf4597267c417475a6a3a4935ad
BLAKE2b-256 af61ec26d1d6852e04383f74c3e714fca8d7d3d5c1a71d797ba0db2f580a5e23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-6.7.0-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 6decedba07031d1318528cb76d8400ae1572f7b08197f771ceca9e454e0060bf
MD5 808c9ed0acd4e01af97a2d28fe3a3db1
BLAKE2b-256 f7ba90df790248269751f8a3ae646705e9837e06f97782370db8c511ebbd7302

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