Skip to main content

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.readthedocs.io/

Website:

http://www.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, Django, 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.)

  • Libraries like PyQt5, PySide2, wxPython, matplotlib or Django are fully supported, without having to handle plugins or external data files manually.

  • 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

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

  • GNU/Linux (32bit/64bit)

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

  • macOS (64bit):

  • macOS 10.15 (Catalina) or newer.

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

  • PowerPC GNU/Linux (Debian)

Before using any contributed platform, you need to build the PyInstaller bootloader, as we do not ship binary packages. Download PyInstaller source, and build the bootloader:

cd bootloader
python ./waf all

Then install PyInstaller:

python setup.py install

or simply use it directly from the source (pyinstaller.py).

Support

See http://www.pyinstaller.org/support.html for how to find help as well as for commercial support.

Changes in this Release

You can find a detailed list of changes in this release in the Changelog section of the manual.

Release files for pyinstaller 5.0

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.0
File Size Uploaded
pyinstaller-5.0.tar.gz 2.8 MB Details

Built distributions (wheels)

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

Total release size: 19.0 MB

Release files / pyinstaller-5.0.tar.gz

Download URL pyinstaller-5.0.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
0b7f1a09e1ae617867d4e9b56285dd670bcf0b1362b272c96a933b0195fce226
BLAKE2b-256 checksum
How to use checksums
cfb069585629b023056e801a99ee4d669e2d3b85fb5a68fe461c1660af9ea514
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1.dev1+gf543114 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL pyinstaller-5.0-py3-none-win_amd64.whl
Size 2.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
bc9430b04e0e38a29b08fac10f45fc3a1c71f0f5de9ca5d9996f7cfe6a4cc5bf
BLAKE2b-256 checksum
How to use checksums
d5b35b56316188224cd36c6917bafad36d8a88da494f5f82090bdd05ee176cfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1.dev1+gf543114 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL pyinstaller-5.0-py3-none-win32.whl
Size 2.0 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
c72128088b8670fa2b16264395d3fe6546cd3679f43e53f8077deda58c06cfc0
BLAKE2b-256 checksum
How to use checksums
18d866099ade31dd6fccd855aefd3316a969a24d3de29e184b0c7b6090c5c580
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1.dev1+gf543114 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL pyinstaller-5.0-py3-none-musllinux_1_1_x86_64.whl
Size 1.5 MB
Tags Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
0e58b86e126a076ab912cefa57aa057baa8ad51ffdfcb8decab30712c0f0c698
BLAKE2b-256 checksum
How to use checksums
fd1a41240e96b7b49c4c420ba5e3e2977265837ce66e8d68ba8a6b6cb597c9e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1.dev1+gf543114 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL pyinstaller-5.0-py3-none-musllinux_1_1_aarch64.whl
Size 1.5 MB
Tags Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c71d94fa7b1feeeca8d41f638560b1165202c594f7f79c70e38f8034a8318888
BLAKE2b-256 checksum
How to use checksums
8d876dec623f390ade07256f15d2488ef22f253d4c7edcd002067e5498f7a45c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1.dev1+gf543114 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL pyinstaller-5.0-py3-none-manylinux2014_x86_64.whl
Size 1.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5d9bf534b9d24c32549bd0b36a4b15d80adf57773addc065e5c68d9bd5144450
BLAKE2b-256 checksum
How to use checksums
05389866b9a8eacdeb7176228af8071e965d9c02871f3129c5533c96468d6693
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1.dev1+gf543114 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL pyinstaller-5.0-py3-none-manylinux2014_s390x.whl
Size 1.5 MB
Tags Linux glibc 2.17+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
16c6d5ee6cbba2835572e2b33b300775e597ad7ece60647e8b5b0de90fff27a5
BLAKE2b-256 checksum
How to use checksums
206aeefc6a3fea3ec394424594dccb5958bf5c0cada572e287f165ae13695efc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1.dev1+gf543114 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL pyinstaller-5.0-py3-none-manylinux2014_ppc64le.whl
Size 1.5 MB
Tags Linux glibc 2.17+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
00a982387c69d101fb1ae680689ec88301466eda96928fdc3ba087f7e58ced70
BLAKE2b-256 checksum
How to use checksums
2396d029d1aad00c47a72eec544a738a018defe20b163b2f709971be1fb4372a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1.dev1+gf543114 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL pyinstaller-5.0-py3-none-manylinux2014_i686.whl
Size 1.5 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
a4259e924e8ca0a2b73f9b602f056548be3547dff2869fc7329a21831e493f7e
BLAKE2b-256 checksum
How to use checksums
685396967711dd4186273529333a636412a67b2ccbeed02c08c7b12c078e53ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1.dev1+gf543114 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL pyinstaller-5.0-py3-none-manylinux2014_aarch64.whl
Size 1.5 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
050f91ddf78a6b25c578c9d206740fd2401ddc5123665d4633c06e0825de8738
BLAKE2b-256 checksum
How to use checksums
47d48111a3a12cb8d928edde356f6a81e410451930d6f03f4bd11695a0a235b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1.dev1+gf543114 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL pyinstaller-5.0-py3-none-macosx_10_13_universal2.whl
Size 1.6 MB
Tags Python 3 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
478a205a13c1c9fa0ef1fe55bdfff5ffc8946d612a6a6d093b2e599d69a26e55
BLAKE2b-256 checksum
How to use checksums
9a78ad56bf3acf3260cff493a95909fd4fea9bd476a78165b6db92a98aa6061f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1.dev1+gf543114 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

5.5

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

This release

5.0 This release

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