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

  • 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.7-3.11. 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.12.

  • Windows (32bit/64bit):
    • 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.

    • Note that Windows on arm64 is not yet supported. If you have such a device and want to help us add arm64 support then please let us know on our issue tracker.

  • 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-5.7.0.tar.gz (2.4 MB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3 Windows ARM64

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

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

pyinstaller-5.7.0-py3-none-musllinux_1_1_x86_64.whl (650.4 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ x86-64

pyinstaller-5.7.0-py3-none-musllinux_1_1_aarch64.whl (653.7 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

pyinstaller-5.7.0-py3-none-manylinux2014_i686.whl (653.7 kB view details)

Uploaded Python 3

pyinstaller-5.7.0-py3-none-macosx_10_13_universal2.whl (923.6 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for pyinstaller-5.7.0.tar.gz
Algorithm Hash digest
SHA256 0e5953937d35f0b37543cc6915dacaf3239bcbdf3fd3ecbb7866645468a16775
MD5 1713534f66923b54bd49a14d38cae9e1
BLAKE2b-256 132ebc4c0026659cea46aca867f4d71e8bab5a6430b4c005c51e174da5e6e4a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.7.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 3e51e18a16dec0414079762843cf892a5d70749ad56ca7b3c7b5f8367dc50b1e
MD5 ab4867c240709ee9ee0c6775893d391e
BLAKE2b-256 497c55a26eec5e23eb1825c582a0a3f8adab9df260f09d95026d0bc2d1990c7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.7.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9b47c10fbefac6f6493266f8b1689109b2b14efa9142dbd2cd7549226a4568b7
MD5 f1d1c5cbe8b16771e4d5ec9879756a2e
BLAKE2b-256 a6fc029b4c0138abc7941ea757044efd5b739de2ef561a87bad624309dafdd89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.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/4.0.2 CPython/3.10.4

File hashes

Hashes for pyinstaller-5.7.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 9cdb8ee8622ee8d2c6cd67f001b610019d4371a8bf3f7850562640ce786894d7
MD5 918d092697b617f47391051433b1f3ee
BLAKE2b-256 5259c7745dee5e87df35777f942a38ee46dbd2300de740f15884f816fad8ce62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.7.0-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 1ac3f09b838710c43e34b0a7ad003bd168a754b0b786c561b47baf1af9104354
MD5 bb46b2be7addae9cd058354c13e8bab9
BLAKE2b-256 adf027aa344a5f7a14cdede64e1245120767c124a222d06d34b028d975e665c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.7.0-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 28a8a0da656493aa32d9665e2f6f84775da0f23174859ed8facaa4226fe77a17
MD5 2eabfe2fee04c60d296251391545a348
BLAKE2b-256 88e5ac2579821e9e72d3b8723b4da0293f559f19e4de5eb1655de90d531f336d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.7.0-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f35f06d48faea0ad738429c009941059beebaa306e9d9ead95f1df4b441de2aa
MD5 59f4344928a41eeff6ec2a32c1da2439
BLAKE2b-256 2d13d2f8cf81febcb4cb0814fa5b58b5dcf6fb0c3f978042f9b4612c97d17022

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.7.0-py3-none-manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 dfc12e92fe10ae645dd0dd1fcfa4cd7677b2e96119e3cd4980d742e09bb78925
MD5 0b1105b78f3999d1762eb60f9e4c9fdc
BLAKE2b-256 54b67df1b5d5f230d1080d34397d6306fd9657198c252eb58865697e74d9a024

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.7.0-py3-none-manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 2c1dd9d11cfc48bab61eeb06de69a3d1ad742bbb2ef14716965ca0333dd43a5b
MD5 3feae857ead00dbbf0fe01451cc31d11
BLAKE2b-256 661c28c1eb69acdbc3ec76bc47324a3bc39401d1e035dd0911d76e7664332996

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.7.0-py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 0f80e2403e76630ad3392c71f09c1a4284e8d8a8a99fb55ff3a0aba0e06300ed
MD5 d399323ad61c5315d1c060ce8cf9bdaf
BLAKE2b-256 2b9bd61cc4fa123046abd8f8ff7d8c42db0b672fbc556e0f331089877cdd5782

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.7.0-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3180b9bf22263380adc5e2ee051b7c21463292877215bbe70c9155dc76f4b966
MD5 60da9441d4c63c95a65cbaa52c78a726
BLAKE2b-256 929f250dc2beb4b3f197bcadc313ec74aba226742674af174a3ca11a77319043

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.7.0-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 b967ae71ab7b05e18608dbb4518da5afa54f0835927cb7a5ce52ab8fffed03b6
MD5 37ece8d6f67c05e3a9d4fcb166f65341
BLAKE2b-256 2a4bc0b2097cc6d57540d859ba8e0cd701c896266f5399ae710251b2e247e6c0

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