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

  • 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.10. 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.11.

    • tinyaes 1.0+ (only if using bytecode encryption). Instead of installing tinyaes, pip install pyinstaller[encryption] instead.

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

Uploaded Source

Built Distributions

pyinstaller-5.5-py3-none-win_amd64.whl (1.2 MB view details)

Uploaded Python 3 Windows x86-64

pyinstaller-5.5-py3-none-win32.whl (1.1 MB view details)

Uploaded Python 3 Windows x86

pyinstaller-5.5-py3-none-musllinux_1_1_x86_64.whl (594.0 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ x86-64

pyinstaller-5.5-py3-none-musllinux_1_1_aarch64.whl (597.2 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

pyinstaller-5.5-py3-none-manylinux2014_x86_64.whl (593.2 kB view details)

Uploaded Python 3

pyinstaller-5.5-py3-none-manylinux2014_s390x.whl (593.4 kB view details)

Uploaded Python 3

pyinstaller-5.5-py3-none-manylinux2014_i686.whl (597.1 kB view details)

Uploaded Python 3

pyinstaller-5.5-py3-none-macosx_10_13_universal2.whl (866.8 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for pyinstaller-5.5.tar.gz
Algorithm Hash digest
SHA256 88993dfc6429dce8dd1f9a73c08e259af71dd3a227d3002ccb8e959151757dc3
MD5 b2b21eca4a5232924f9e619b4c1bf257
BLAKE2b-256 1ed7214b25c912d5f7d9c31d266821a8be6a35df80535056fe83997688721927

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.5-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for pyinstaller-5.5-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d06378354b8d3d08309fddb230c813fc750848d71156274c15afdfedd56f57cf
MD5 469ea7650be04d405512ffd4f52c3f5a
BLAKE2b-256 ed8a49f7894ce01359b768ad1759790359ec206799ced138be3ba14f90c03a28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.5-py3-none-win32.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for pyinstaller-5.5-py3-none-win32.whl
Algorithm Hash digest
SHA256 c7326298be50adcdf799e9b3f880543b925be7341cb1ac2a1e5b1a47b9dc3183
MD5 e63e914ea372622b01a0b933d7fa08b3
BLAKE2b-256 e9eae4ee05b042eea993ebdef5dfdecb31d83440cd9959e3904d56652a4a90f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.5-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 d902a9b669f90665a3abe5d0f176784fc3f2e1320d6c98df0bd1457c77ca706a
MD5 7b109c1f2f3042158ee56f9593155480
BLAKE2b-256 b484860f102de1ec15a5128e387fc9019c55924c7946c054a678bc0562e557bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.5-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 9e8950c599847d15e7d7b8c18073fab267d7d3d41650a64c46278b97655076d3
MD5 279b5d5bb52dd12f1323ff7b2975ce98
BLAKE2b-256 42c7a7b4025c0b5b022897a8b818e1d27ab8a3ae989e6bdeb76e5dac729281ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.5-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 91c0947063f49b21476e374662f62b00d0cf5a97ad6851c12124280409aebbd1
MD5 57144e5433442928fc29ce31190d498d
BLAKE2b-256 28c558ceb7e8a5d802cdc3c9e2897f738a1381cde2b3f7b9afb518fa8093b873

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.5-py3-none-manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 47a63d42ceb73355bf3afec51109ee3f5b3893f068be821a6735cada229ab680
MD5 bf20c72e164893949631c25b0d911453
BLAKE2b-256 d845612a8a2dbfb8a321eae9dc98452ab9c2a15e8d0093542da31420e3b6410b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.5-py3-none-manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 5f8834af70a6e080ab4fe53ec2b8b4fdfcc0106bd8db7cc27da9a8973ecffe05
MD5 deecd2976fcbaecd50d29593c7dcadfc
BLAKE2b-256 99317aea40182dd85dde8c9d017905863641091a2a8787c05515366038a472f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.5-py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 94e947980c7d9b7e422f4af9885f12560cb546ee2017fb0f2c8af5a9a309c63f
MD5 0aa295a4a6c11a5ac4277954efdfeee5
BLAKE2b-256 7637dab88605b062b4d3b33eef174a7c3cc9eb2876a18dd93e89bcff1a367fba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.5-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2a2fc8755b00cc1ea4d89bb81f8ada8c2afe0d13a7f7b35020e8a694d6882c9e
MD5 ecce1f7727edec3b95d323eab76d270a
BLAKE2b-256 c931effd682879a3084e0e23994f1c9469b28868665b7d81ff4d3d070e1a2c8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.5-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 838e0a385355e55833f2ac62e75290f345d0b57bad53f08742c28a7cb96e91c8
MD5 97866070e59ad6899e3b173875bb0848
BLAKE2b-256 f54f91c9db57f56e7bb25a4c2b7efcc01bd1a246a95570562aae7ef16543c539

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