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

Uploaded Source

Built Distributions

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

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

pyinstaller-5.4.1-py3-none-musllinux_1_1_x86_64.whl (591.7 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ x86-64

pyinstaller-5.4.1-py3-none-musllinux_1_1_aarch64.whl (594.9 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

pyinstaller-5.4.1-py3-none-manylinux2014_s390x.whl (591.2 kB view details)

Uploaded Python 3

pyinstaller-5.4.1-py3-none-manylinux2014_i686.whl (594.8 kB view details)

Uploaded Python 3

pyinstaller-5.4.1-py3-none-macosx_10_13_universal2.whl (864.5 kB view details)

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

File details

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

File metadata

  • Download URL: pyinstaller-5.4.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.4.1.tar.gz
Algorithm Hash digest
SHA256 2a09e6bd6e121eb1a71fadb223797dc502e4fd4168931c31a5f87faa10eb5b4c
MD5 1b2635f04c511e75786d4e5271c1cc2f
BLAKE2b-256 189edbee87c405633be8ae926520d5e91c29cd76c969328ad4c724e6983e2b58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.4.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0c8626c2db6e2d426be3e44ae08039d638481de7b580769668dd777116d911b9
MD5 5bfb61936b5d1f8847f4d206de1ce2d1
BLAKE2b-256 20e2f03f375babdd2964db4d99a4952b421ec457a2f800eb04b040db395d7894

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.4.1-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.4.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 7da11fdee216ae0b887f9d1fe0eca7bce2b8f5d039eeac2561282feff5970d24
MD5 a9a9e09ce12b926266212da1434c6708
BLAKE2b-256 f2ec9539310d432c15da65610e5657582ab2f000bd40b2b13f2dfd73aa54f75c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.4.1-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 f7f0ad1bdea828c163e2032c7ce941b2d0b68a83b3b572e6ce50c77ca7987574
MD5 420b68567586e71deee47595fd343531
BLAKE2b-256 17d297c1b7e99cd1a24906cf6dd88baaf85744ffe8ca220e31fd48c95efda6dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.4.1-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 bec1d94cba89f64a61606a1eaf33202f3a52ff2ac65e25555053fd5fe55b760d
MD5 883079e48e2cf4221378391db13c5515
BLAKE2b-256 eb33a44669d02700bb1cefa65d5446da8f89f0a7dedfe7a1f206505dd99b03d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.4.1-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b57e8f9ec23a48b740c5dbb19cd5499150e35a2997dfd0b8f96e2deced512ecc
MD5 45f539b92763a2eb9daa196b528c86f2
BLAKE2b-256 abf88165d18e0686bd84a64ba96cd90696a3edce906a90495f82a4db7250b65f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.4.1-py3-none-manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 994b76d10892f1d3f9a4241109a3f7b1e9b74dea3198bf3f502d2f4ae744fa6e
MD5 226fb449dfdb7a2c933eee764d6df836
BLAKE2b-256 b17b02869ad7187155212cbae3a44485884d2ca7f6a8ae086cceb28870fb6f3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.4.1-py3-none-manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 4b4d867fbc6c35bb30b09f681d469f824c69fe32f2358b8af75247bdefdf694a
MD5 8d7d4690cf58162ab8dfa92de06ecf81
BLAKE2b-256 33b3ddc2aeab125e09b250deb5d16d9209ca903e0e9f63a2fbebbba300856a79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.4.1-py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 9a2b99f191e28dec6cb8eb5544fa436f2109073e634f8e602225ada0239aed46
MD5 b6373509a841d2fbee0fbdd78e0edd17
BLAKE2b-256 0130be511e2a5334252134398815147b1c44badb3fc7294f45af79f388790f28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.4.1-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 806df33e2b93a69f45e4c8be72d3b51449e9e0f557a3e89e0b06f5cb9a111022
MD5 2824666ae7bc4fb217a0627bee85d348
BLAKE2b-256 664fde3169b16842bc4b7f10457ceba60320bd174bb1c08b3bf18ece8be33ca5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.4.1-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 0ac78f1145be34adda8afb5fe4c8d659172140092c055994dab57ee2190bec71
MD5 cede40d1b12c595ad9a0c60a33876744
BLAKE2b-256 bd26e5f04d29f19cf1e9e9fe0d9f2f20bb08a3c0dfc613b06c90d7714e5ecefa

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