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.

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

Uploaded Source

Built Distributions

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

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

pyinstaller-5.6.1-py3-none-musllinux_1_1_x86_64.whl (595.4 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ x86-64

pyinstaller-5.6.1-py3-none-musllinux_1_1_aarch64.whl (598.6 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

pyinstaller-5.6.1-py3-none-manylinux2014_s390x.whl (594.9 kB view details)

Uploaded Python 3

pyinstaller-5.6.1-py3-none-manylinux2014_i686.whl (598.5 kB view details)

Uploaded Python 3

pyinstaller-5.6.1-py3-none-macosx_10_13_universal2.whl (868.3 kB view details)

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

File details

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

File metadata

  • Download URL: pyinstaller-5.6.1.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.6.1.tar.gz
Algorithm Hash digest
SHA256 a7fac3fa8f75bce2839e0ab910baf0e935ff2b5f327c32aedade563e1b610967
MD5 6933950f8a2074c7b4f9abfb697c1926
BLAKE2b-256 0496d7a4bc8c035f1069f9c9c34696860ef5be3bf6bd69131c6711e55176d5e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.6.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ec9d9491681ac55e369a5226833694bf299ddeaeab6df4ef9d44758d4342f10a
MD5 9df350fece97efbf0424d1de9fd23c2d
BLAKE2b-256 0f7f14197a2b8ba49df715b914b58d544d2494bde013645564fbdd5c419e898a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyinstaller-5.6.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 fc734eb91e08c75fc7505170d765a49d781dad9e49dd641ebe4f8a82782f0be2
MD5 cf895271f985b5e05f5c9c3999c02706
BLAKE2b-256 2a76133d6bf4991c195dc86535df1b84cb07fd839b19ac591df676e68b3364c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.6.1-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 a64a5472ee36f63e773be63535817b6d8aea1c1cf9acd18858c22c66fe575043
MD5 fce7d1dad78b9ee0e1c9c1baa35960f1
BLAKE2b-256 b9dd6c8a526720a5a28e051a2fda526f9abd3980619f9b6d0184ea9159df2649

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.6.1-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 8c423556f0aac7651cda813db0d215c36c51717c4079e407136a4d9f730d38b0
MD5 61400e21f82b684eb7de53cdaa6b98b6
BLAKE2b-256 9e08a89d7c200a19ad1d959c41fac9ac4351e945c274d7a95bdd784396df834e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.6.1-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14a0bb008966ba074e173f94b5bffd78a4d84e4a21fafc63c1b72851a40a918d
MD5 38354b5ab9bc6e7194c4d132e4c0e052
BLAKE2b-256 9ec3c7908df8c1e25174f3870fbfee0d97a29602c4b5c6cc207dbcdbfc71b646

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.6.1-py3-none-manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 b8dc59b00bc09053ed0476b47423373fafb8f4d57618e9eff7047cda8942e1c4
MD5 3a6001de43ed852edf9dadad57ad4f59
BLAKE2b-256 0e5bff6939cc8639e203b914d9467762e6753a0aa099d5ea7db7cb13e576c132

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.6.1-py3-none-manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 bb3faba1a29686e1c2d71a939bc6d1a57ca218d6968f43620591df42058635e0
MD5 75b466a7dad2a3bc4be6335cf88342e3
BLAKE2b-256 a5bd7440fbfbecca208f0f6873de4f779932be9cbdcb7bbe1e329f3ceb309bb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.6.1-py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 2abb74b008f01a8d9b54c27ea51aa6d59ea6137d507de9d580f79b934e0ca7b8
MD5 1775734c41ebda8214dab11ed7ae6484
BLAKE2b-256 8724c6e310cef5aa6f65de4e31cdbb425fd01223b333b415319502f02151926a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.6.1-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 556750250bba85cf7ede168994fe70fcdeeba8d22f51eaedfd94b3efb6faa6ce
MD5 845dfacadeed480011987da61fd2727b
BLAKE2b-256 7ec780ae17bd41b3cb1d263b7d0fef83cc0137342af454e4238ca044d2eb5e0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.6.1-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 0465edb7a5b2bc74ac983d419fd980fd2e4c7d49f4c013edd4befb6ca70d3c2b
MD5 fabb79725dfc71d52fa573e29edf4210
BLAKE2b-256 698ddee83bc689045f432f31a863b8f9a584ef6cbdda4b8d264e001914c84949

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