What is the python include path for Ubuntu?

jeffrey.scott.flesher's Avatar


19 Jul, 2021 07:00 PM

This is an Ubuntu2004 image, this is what I have tried and does not work for python, I am using 3.8 because I run Windows also, it works fine, but Windows 7 cannot run 3.9, and want to keep the same version for both, this is Qt configuration, and Qt works, it just cannot find #include <Python.h>

stack: python 3.8

# I found this somewhere, but it did not help
- source $HOME/venv3.8/bin/activate

# These are from the Documentation
- export PATH=$HOME/venv3.8:$HOME/venv3.8/bin:$HOME/venv3.8/lib:$HOME/Qt/5.15.2/gcc_64/bin:$HOME/Qt/5.15.2/gcc_64/lib:$HOME/Qt/5.15.2/gcc_64/include:$PATH

As per the documents, Qt works, but not Python, I have done an ls to try to find the include, even looked in /user


# Account galaxy-calculator-2

Thanks, Flesh

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac