{"library":"pyinstaller","title":"PyInstaller","description":"PyInstaller is a versatile tool that bundles a Python application and all its dependencies into a single package, often a standalone executable. This allows distribution of Python applications to users without requiring them to install a Python interpreter or any modules. The current version is 6.19.0, and the project typically releases minor versions every 2-3 months and major versions annually.","language":"python","status":"active","last_verified":"Thu Apr 09","install":{"commands":["pip install pyinstaller"],"cli":{"name":"pyinstaller","version":"ERROR: On Linux, objdump is required. It is typically provided by the 'binutils' package installable via your Linux distribution's package manager."}},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\n\n# Create a dummy Python script for demonstration\nwith open('my_app.py', 'w') as f:\n    f.write(\"\"\"\nimport sys\nimport os\n\ndef main():\n    print(\"Hello from my bundled app!\")\n    print(f\"Running from: {os.path.dirname(sys.executable)}\")\n\nif __name__ == '__main__':\n    main()\n\"\"\")\n\n# Run PyInstaller via command line (most common use case)\n# For programmatic use, you'd typically call PyInstaller.__main__.run(['my_app.py'])\n# This is a shell command, not Python code to be executed directly in this context.\n# You would run 'pyinstaller my_app.py' in your terminal.","lang":"python","description":"PyInstaller is primarily a command-line tool. This example demonstrates how to create a simple Python script and the typical command used to bundle it into a standalone executable. After running `pyinstaller my_app.py` in your terminal, a `dist` folder will be created containing the executable.","tag":null,"tag_description":null,"last_tested":"2026-04-24","results":[{"runtime":"python:3.10-alpine","exit_code":0},{"runtime":"python:3.10-slim","exit_code":0},{"runtime":"python:3.11-alpine","exit_code":0},{"runtime":"python:3.11-slim","exit_code":0},{"runtime":"python:3.12-alpine","exit_code":0},{"runtime":"python:3.12-slim","exit_code":0},{"runtime":"python:3.13-alpine","exit_code":0},{"runtime":"python:3.13-slim","exit_code":0},{"runtime":"python:3.9-alpine","exit_code":0},{"runtime":"python:3.9-slim","exit_code":0}]},"compatibility":null}