skillfed

Nuitka

Python compiler with full language support and CPython compatibility

nuitka v4.1.3 496.4K downloads/30d#6,337 on PyPI15,087
AGPL license GNU Affero General Public License v3 Active released

What it is and what it does

Nuitka is a Python-to-C compiler that translates Python source code into C, which is then compiled to machine binaries using a system C compiler. It supports Python 2.6–2.7 and Python 3.4–3.14, emulating CPython semantics closely enough that compiled and uncompiled code can run together. The compiler aims to eliminate unnecessary overhead while maintaining compatibility with all Python library modules and extension modules.

You use Nuitka via the command line (typically `python -m nuitka`) to compile a Python script or module into a standalone executable or accelerated binary. It requires a C compiler (gcc, clang, Visual Studio, MinGW64, or zig) and the matching Python implementation (CPython, Anaconda, or Homebrew Python) to be present on the build machine. Compiled binaries can be made portable across machines using `--mode=standalone` or `--mode=onefile` options.

Use it for:

  • Distribute Python applications as standalone executables without requiring Python installation on end-user machines.
  • Accelerate performance-critical Python code by compiling it ahead-of-time to native machine code.
  • Protect source code by shipping compiled binaries instead of readable Python scripts.
  • Create cross-platform command-line tools or desktop applications from Python codebases.
  • Bundle Python applications with all dependencies into a single executable file using onefile mode.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Nuitka compiles Python code to C and then to machine binaries, supporting Python 2.6–2.7 and Python 3.4–3.14 with full language compatibility and CPython semantics.

Yes, if you need to distribute Python as compiled binaries or accelerate performance-critical code and can accept the high installation friction (C compiler requirement) and AGPLv3+ licensing constraints. The project is actively maintained, widely used (top 15000 on PyPI), and has no known vulnerabilities. Not recommended for proprietary closed-source projects due to copyleft licensing, or for environments where installing a C compiler is impractical.

Install

nuitka on PyPI

pip

pip install nuitka

uv

uv add nuitka

poetry

poetry add nuitka

Installing Nuitka

Before you install

Installation requires a C compiler (gcc, clang, Visual Studio, MinGW64, or zig) and involves downloading and building C artifacts, resulting in high friction. The project is actively maintained with recent releases and a large repository (15087 stars).

License in practice

Nuitka is licensed under GNU Affero General Public License v3 or later (AGPLv3+). This copyleft license requires that any modifications or derivative works be distributed under the same license and made available to users; it also includes a network use clause. Proprietary or closed-source projects may face licensing constraints.

Quickstart

pip install nuitka
python -m nuitka --help
python -m nuitka --onefile your_script.py

Requires a C compiler (gcc 5.1+, clang, Visual Studio 2022+, MinGW64, or zig) installed on the system; CPython (not PyPy, pyenv on macOS, or Windows Store Python) must be the active interpreter.

Verify before relying

  • Performance improvement magnitude and compilation time overhead for typical projects.
  • Compatibility edge cases with C extensions and third-party modules beyond the documented scope.
  • Practical experience with standalone mode portability across different OS/architecture combinations.

Package facts

License GNU Affero General Public License v3 (agpl)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance actively maintained — 54 days since the last release
Last repo commit
First released
Downloads 496,362/month — #6,337 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: nuitka-4.1.3.tar.gz

Keywords: compiler, python, nuitka

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)Operating System :: AndroidOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: BSD :: FreeBSDOperating System :: POSIX :: BSD :: NetBSDOperating System :: POSIX :: BSD :: OpenBSDOperating System :: POSIX :: LinuxProgramming Language :: CProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Build ToolsTopic :: Software Development :: CompilersTopic :: Software Development :: Quality AssuranceTopic :: System :: Software Distribution

Tags

python to binary compilercompile python to executablepython ahead-of-time compilationpython c compilerstandalone python executablepython performance optimizationpython to machine code
compilationdistributionperformance

More Build Tools packages