Skip to main content

PyInstaller Overview

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.

Metadata

Release files for pyinstaller 5.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyinstaller 5.5
File Size Uploaded
pyinstaller-5.5.tar.gz 2.4 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyinstaller 5.5
File
pyinstaller-5.5-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
pyinstaller-5.5-py3-none-win32.whl Python 3 none Windows x86-32 Details
pyinstaller-5.5-py3-none-musllinux_1_1_x86_64.whl Python 3 none Linux musl 1.1+ x86-64 Details
pyinstaller-5.5-py3-none-musllinux_1_1_aarch64.whl Python 3 none Linux musl 1.1+ ARM64 Details
pyinstaller-5.5-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
pyinstaller-5.5-py3-none-manylinux2014_s390x.whl Python 3 none Linux glibc 2.17+ IBM System/390x Details
pyinstaller-5.5-py3-none-manylinux2014_ppc64le.whl Python 3 none Linux glibc 2.17+ PowerPC 64-le Details
pyinstaller-5.5-py3-none-manylinux2014_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details
pyinstaller-5.5-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
pyinstaller-5.5-py3-none-macosx_10_13_universal2.whl Python 3 none macOS 10.13+ universal2 (ARM64, x86-64) Details

Total release size: 9.8 MB

Release files / pyinstaller-5.5.tar.gz

Download URL pyinstaller-5.5.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
88993dfc6429dce8dd1f9a73c08e259af71dd3a227d3002ccb8e959151757dc3
BLAKE2b-256 checksum
How to use checksums
1ed7214b25c912d5f7d9c31d266821a8be6a35df80535056fe83997688721927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / pyinstaller-5.5-py3-none-win_amd64.whl

Download URL pyinstaller-5.5-py3-none-win_amd64.whl
Size 1.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d06378354b8d3d08309fddb230c813fc750848d71156274c15afdfedd56f57cf
BLAKE2b-256 checksum
How to use checksums
ed8a49f7894ce01359b768ad1759790359ec206799ced138be3ba14f90c03a28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / pyinstaller-5.5-py3-none-win32.whl

Download URL pyinstaller-5.5-py3-none-win32.whl
Size 1.1 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
c7326298be50adcdf799e9b3f880543b925be7341cb1ac2a1e5b1a47b9dc3183
BLAKE2b-256 checksum
How to use checksums
e9eae4ee05b042eea993ebdef5dfdecb31d83440cd9959e3904d56652a4a90f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / pyinstaller-5.5-py3-none-musllinux_1_1_x86_64.whl

Download URL pyinstaller-5.5-py3-none-musllinux_1_1_x86_64.whl
Size 594.0 kB
Tags Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d902a9b669f90665a3abe5d0f176784fc3f2e1320d6c98df0bd1457c77ca706a
BLAKE2b-256 checksum
How to use checksums
b484860f102de1ec15a5128e387fc9019c55924c7946c054a678bc0562e557bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / pyinstaller-5.5-py3-none-musllinux_1_1_aarch64.whl

Download URL pyinstaller-5.5-py3-none-musllinux_1_1_aarch64.whl
Size 597.2 kB
Tags Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
9e8950c599847d15e7d7b8c18073fab267d7d3d41650a64c46278b97655076d3
BLAKE2b-256 checksum
How to use checksums
42c7a7b4025c0b5b022897a8b818e1d27ab8a3ae989e6bdeb76e5dac729281ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / pyinstaller-5.5-py3-none-manylinux2014_x86_64.whl

Download URL pyinstaller-5.5-py3-none-manylinux2014_x86_64.whl
Size 593.2 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
91c0947063f49b21476e374662f62b00d0cf5a97ad6851c12124280409aebbd1
BLAKE2b-256 checksum
How to use checksums
28c558ceb7e8a5d802cdc3c9e2897f738a1381cde2b3f7b9afb518fa8093b873
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / pyinstaller-5.5-py3-none-manylinux2014_s390x.whl

Download URL pyinstaller-5.5-py3-none-manylinux2014_s390x.whl
Size 593.4 kB
Tags Linux glibc 2.17+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
47a63d42ceb73355bf3afec51109ee3f5b3893f068be821a6735cada229ab680
BLAKE2b-256 checksum
How to use checksums
d845612a8a2dbfb8a321eae9dc98452ab9c2a15e8d0093542da31420e3b6410b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / pyinstaller-5.5-py3-none-manylinux2014_ppc64le.whl

Download URL pyinstaller-5.5-py3-none-manylinux2014_ppc64le.whl
Size 600.7 kB
Tags Linux glibc 2.17+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
5f8834af70a6e080ab4fe53ec2b8b4fdfcc0106bd8db7cc27da9a8973ecffe05
BLAKE2b-256 checksum
How to use checksums
99317aea40182dd85dde8c9d017905863641091a2a8787c05515366038a472f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / pyinstaller-5.5-py3-none-manylinux2014_i686.whl

Download URL pyinstaller-5.5-py3-none-manylinux2014_i686.whl
Size 597.1 kB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
94e947980c7d9b7e422f4af9885f12560cb546ee2017fb0f2c8af5a9a309c63f
BLAKE2b-256 checksum
How to use checksums
7637dab88605b062b4d3b33eef174a7c3cc9eb2876a18dd93e89bcff1a367fba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / pyinstaller-5.5-py3-none-manylinux2014_aarch64.whl

Download URL pyinstaller-5.5-py3-none-manylinux2014_aarch64.whl
Size 595.5 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
2a2fc8755b00cc1ea4d89bb81f8ada8c2afe0d13a7f7b35020e8a694d6882c9e
BLAKE2b-256 checksum
How to use checksums
c931effd682879a3084e0e23994f1c9469b28868665b7d81ff4d3d070e1a2c8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / pyinstaller-5.5-py3-none-macosx_10_13_universal2.whl

Download URL pyinstaller-5.5-py3-none-macosx_10_13_universal2.whl
Size 866.8 kB
Tags Python 3 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
838e0a385355e55833f2ac62e75290f345d0b57bad53f08742c28a7cb96e91c8
BLAKE2b-256 checksum
How to use checksums
f54f91c9db57f56e7bb25a4c2b7efcc01bd1a246a95570562aae7ef16543c539
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

6.7.0

12 release files

6.6.0

12 release files

6.4.0

12 release files

6.3.0

12 release files

6.2.0

12 release files

6.1.0

12 release files

6.0.0

12 release files

5.9.0

12 release files

5.8.0

12 release files

5.6.2

11 release files

5.6.1

11 release files

5.6

11 release files

This release

5.5 This release

11 release files

5.4.1

11 release files

5.4

11 release files

5.3

11 release files

5.2

11 release files

5.1

11 release files

5.0.1

11 release files

5.0

11 release files

4.10

11 release files

4.9

11 release files

4.8

11 release files

4.7

9 release files

4.6

9 release files

4.5.1

7 release files

4.5

6 release files

4.4

7 release files

4.3

1 release file

4.2

1 release file

4.1

1 release file

4.0

1 release file

3.6

1 release file

3.5

1 release file

3.4

1 release file

3.3.1

1 release file

3.3

1 release file

3.2.1

1 release file

3.2

2 release files

3.1.1

2 release files

3.1

1 release file

3.0

1 release file

2.1

2 release files

2.0

2 release files

1.5.1

1.5

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page