Skip to main content

PyInstaller bundles a Python application and all its dependencies into a single package.

Project description

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.

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

Uploaded Source

Built Distributions

pyinstaller-5.0-py3-none-win_amd64.whl (2.0 MB view details)

Uploaded Python 3 Windows x86-64

pyinstaller-5.0-py3-none-win32.whl (2.0 MB view details)

Uploaded Python 3 Windows x86

pyinstaller-5.0-py3-none-musllinux_1_1_x86_64.whl (1.5 MB view details)

Uploaded Python 3 musllinux: musl 1.1+ x86-64

pyinstaller-5.0-py3-none-musllinux_1_1_aarch64.whl (1.5 MB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

pyinstaller-5.0-py3-none-manylinux2014_i686.whl (1.5 MB view details)

Uploaded Python 3

pyinstaller-5.0-py3-none-macosx_10_13_universal2.whl (1.6 MB view details)

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

File details

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

File metadata

  • Download URL: pyinstaller-5.0.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyinstaller-5.0.tar.gz
Algorithm Hash digest
SHA256 0b7f1a09e1ae617867d4e9b56285dd670bcf0b1362b272c96a933b0195fce226
MD5 4653e1f750c1dd96b38078f8258c0fc9
BLAKE2b-256 cfb069585629b023056e801a99ee4d669e2d3b85fb5a68fe461c1660af9ea514

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for pyinstaller-5.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 bc9430b04e0e38a29b08fac10f45fc3a1c71f0f5de9ca5d9996f7cfe6a4cc5bf
MD5 cd40a12a5ba80bfd2187fe69676af06e
BLAKE2b-256 d5b35b56316188224cd36c6917bafad36d8a88da494f5f82090bdd05ee176cfd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.0-py3-none-win32.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3, Windows x86
  • Uploaded using 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

File hashes

Hashes for pyinstaller-5.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 c72128088b8670fa2b16264395d3fe6546cd3679f43e53f8077deda58c06cfc0
MD5 a3bd3254cc2421e17d1fac3cbf5e73c0
BLAKE2b-256 18d866099ade31dd6fccd855aefd3316a969a24d3de29e184b0c7b6090c5c580

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.0-py3-none-musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3, musllinux: musl 1.1+ x86-64
  • Uploaded using 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

File hashes

Hashes for pyinstaller-5.0-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 0e58b86e126a076ab912cefa57aa057baa8ad51ffdfcb8decab30712c0f0c698
MD5 5649d068b04c6dba4cc1d617ff51d959
BLAKE2b-256 fd1a41240e96b7b49c4c420ba5e3e2977265837ce66e8d68ba8a6b6cb597c9e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.0-py3-none-musllinux_1_1_aarch64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3, musllinux: musl 1.1+ ARM64
  • Uploaded using 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

File hashes

Hashes for pyinstaller-5.0-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 c71d94fa7b1feeeca8d41f638560b1165202c594f7f79c70e38f8034a8318888
MD5 bdf24cb89caf7da065c5c9518dbe63d6
BLAKE2b-256 8d876dec623f390ade07256f15d2488ef22f253d4c7edcd002067e5498f7a45c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.0-py3-none-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyinstaller-5.0-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d9bf534b9d24c32549bd0b36a4b15d80adf57773addc065e5c68d9bd5144450
MD5 d0129b6234396f599df3446785a8916c
BLAKE2b-256 05389866b9a8eacdeb7176228af8071e965d9c02871f3129c5533c96468d6693

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.0-py3-none-manylinux2014_s390x.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyinstaller-5.0-py3-none-manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 16c6d5ee6cbba2835572e2b33b300775e597ad7ece60647e8b5b0de90fff27a5
MD5 a26f7d61a9110746eab359a03fa77d13
BLAKE2b-256 206aeefc6a3fea3ec394424594dccb5958bf5c0cada572e287f165ae13695efc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.0-py3-none-manylinux2014_ppc64le.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyinstaller-5.0-py3-none-manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 00a982387c69d101fb1ae680689ec88301466eda96928fdc3ba087f7e58ced70
MD5 2681e15f7cb0dd99e9f6002ad3db3d94
BLAKE2b-256 2396d029d1aad00c47a72eec544a738a018defe20b163b2f709971be1fb4372a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.0-py3-none-manylinux2014_i686.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyinstaller-5.0-py3-none-manylinux2014_i686.whl
Algorithm Hash digest
SHA256 a4259e924e8ca0a2b73f9b602f056548be3547dff2869fc7329a21831e493f7e
MD5 3715c3237cf0ab9c86a585ab4b439e15
BLAKE2b-256 685396967711dd4186273529333a636412a67b2ccbeed02c08c7b12c078e53ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.0-py3-none-manylinux2014_aarch64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyinstaller-5.0-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 050f91ddf78a6b25c578c9d206740fd2401ddc5123665d4633c06e0825de8738
MD5 2f0377db7cf2a8604edf8d47c9398f2e
BLAKE2b-256 47d48111a3a12cb8d928edde356f6a81e410451930d6f03f4bd11695a0a235b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyinstaller-5.0-py3-none-macosx_10_13_universal2.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3, macOS 10.13+ universal2 (ARM64, x86-64)
  • Uploaded using 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

File hashes

Hashes for pyinstaller-5.0-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 478a205a13c1c9fa0ef1fe55bdfff5ffc8946d612a6a6d093b2e599d69a26e55
MD5 c0b62675cc9160305f0a2c602747e52d
BLAKE2b-256 9a78ad56bf3acf3260cff493a95909fd4fea9bd476a78165b6db92a98aa6061f

See more details on using hashes here.

Supported by

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