Python.h header file not found by Nuitka
The Problem in a Few Words
Nuitka uses a “Backend C” compiler to create program code. That applies
to all outputs: extension modules, accelerated binaries, standalone, or
onefile. During this final phase, for the Python build from C code, the
Python.h
file was not found.
Background
This file is used to be able to create C code that integrates with Python, which is what Nuitka does. It is absolutely required.
Consequence
If you are using a system Python, execute the command from this table, it may require root rights.
Commands to install Python.h
Distribution Family |
Python Version |
Example Command |
---|---|---|
Debian / Ubuntu / Mint |
Python 3.x |
|
Debian / Ubuntu / Mint |
Python 2.7 |
|
RHEL / CentOS / Fedora |
Python 3.x |
|
RHEL / CentOS / Fedora |
Python 2.7 |
|
SUSE / openSUSE |
Python 3.x |
|
SUSE / openSUSE |
Python 2.7 |
|
Alpine Linux |
Python 3.x |
|
Alpine Linux |
Python 2.7 |
|
Arch Linux |
Python 3.x |
|
Termux (Android) |
Python 3.x |
|
Termux (Android) |
Python 2.7 |
|
Anaconda |
Python 2.x / 3.x |
Development headers are included with the |