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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3Windows x86

pyinstaller-5.12.0-py3-none-musllinux_1_1_x86_64.whl (652.9 kB view details)

Uploaded Python 3musllinux: musl 1.1+ x86-64

pyinstaller-5.12.0-py3-none-musllinux_1_1_aarch64.whl (656.2 kB view details)

Uploaded Python 3musllinux: musl 1.1+ ARM64

pyinstaller-5.12.0-py3-none-manylinux2014_x86_64.whl (652.2 kB view details)

Uploaded Python 3

pyinstaller-5.12.0-py3-none-manylinux2014_s390x.whl (652.3 kB view details)

Uploaded Python 3

pyinstaller-5.12.0-py3-none-manylinux2014_ppc64le.whl (659.9 kB view details)

Uploaded Python 3

pyinstaller-5.12.0-py3-none-manylinux2014_i686.whl (656.1 kB view details)

Uploaded Python 3

pyinstaller-5.12.0-py3-none-manylinux2014_aarch64.whl (654.5 kB view details)

Uploaded Python 3

pyinstaller-5.12.0-py3-none-macosx_10_13_universal2.whl (926.0 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for pyinstaller-5.12.0.tar.gz
Algorithm Hash digest
SHA256 a1c2667120730604c3ad1e0739a45bb72ca4a502a91e2f5c5b220fbfbb05f0d4
MD5 19aa5397483c1e1ec6818eb6cb0c2a1e
BLAKE2b-256 fbf8a0bfbf01945821c5d9887ecef8ee6a25c1373339ab75ddc3e7a8dbc99ce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.12.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 2f70e2d9b032e5f24a336f41affcb4624e66a84cd863ba58f6a92bd6040653bb
MD5 ed5da72c192d7ffa0298715d754a99cb
BLAKE2b-256 76a727bd8cefa6539c3679c122a4b39aae188e79d021eed601aa1400e228b631

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyinstaller-5.12.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 62d75bb70cdbeea1a0d55067d7201efa2f7d7c19e56c241291c03d551b531684
MD5 6213bd94de90eef39ceedc599723bb06
BLAKE2b-256 7ee64f15b9a81fe1c5d6f6763a034f9e0c45c9dbe69707972b079f18e8863e52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.12.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.9

File hashes

Hashes for pyinstaller-5.12.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 b64d8a3056e6c7e4ed4d1f95e793ef401bf5b166ef00ad544b5812be0ac63b4b
MD5 6f7679faea1c3f1ae073ddb3cbd9ead8
BLAKE2b-256 aefa5ff36d93095d3ff70176307b4cb539c66ce5ac38d5a94c68e17d985ac0ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.12.0-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 d14c1c2b753af5efed96584f075a6740ea634ca55789113d325dc8c32aef50fe
MD5 aa26e563c629536e8d338a10652f8bb0
BLAKE2b-256 06752dd1b787c979506d5d468c9cd5f2c9fb7a43104652210ad3fa8bbee80006

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.12.0-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 3605ac72311318455907a88efb4a4b334b844659673a2a371bbaac2d8b52843a
MD5 c8b37de7d758663d599d5bc37f15c9ea
BLAKE2b-256 a57548f926bcc7b3d466d0ecd73a5b583a81d8542ced008278ab59e8dd5a225b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.12.0-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 92eeacd052092a0a4368f50ddecbeb6e020b5a70cdf113243fbd6bd8ee25524e
MD5 20444e24150d97da0f1c099711fd5759
BLAKE2b-256 57f73d9133a6d69519588bea8f4cce61bb04a76d3a0076f94475d9089a05a1cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.12.0-py3-none-manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 c3ceb6c3a34b9407ba16fb68a32f83d5fd94f21d43d9fe38d8f752feb75ca5bb
MD5 f7f787ac26a43928b631382cc5502266
BLAKE2b-256 d4006e1ee650d7bd112b31cdeabc8c83041211151b5dbb4b8930d82cdcf7bc82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.12.0-py3-none-manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 96ad645347671c9fce190506c09523c02f01a503fe3ea65f79bb0cfe22a8c83e
MD5 4c8a0ec60dcaf98a3a90df8dd92e97b3
BLAKE2b-256 5bab7454d768044582849cafd89f0d8a72ead861b838a4172b44692c440f0866

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.12.0-py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 7eed9996c12aeee7530cbc7c57350939f46391ecf714ac176579190dbd3ec7bf
MD5 5995fe25c29c21a629d4d81b3e735d76
BLAKE2b-256 7b139874a39cf239ceab680c534a7009fee665bf3610593bd706e1a4bcf752e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.12.0-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 303952c2a8ece894b655c2a0783a0bdc844282f47790707446bde3eaf355f0da
MD5 ba5d497fad88c44d0c636899afe98fb6
BLAKE2b-256 20c11de7e7cba1d66cdadec075f7b027305d95abc2565b228a5510d09a00bc9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinstaller-5.12.0-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 edcb6eb6618f3b763c11487db1d3516111d54bd5598b9470e295c1f628a95496
MD5 127b77afc847811ed6d60473f505c8eb
BLAKE2b-256 5b3d49d8288c9470f982929426691ff433c21797a0c4071cd586e3cc581b2b03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page