Skip to content

Fatal error: Python.h: No such file or directory #27036

Answered by bmahlbrand
bmahlbrand asked this question in Actions
Discussion options

You must be logged in to vote

It turns out I had a non portable path set up in my cmakelists.txt that setup.py was running. To confirm for future travelers, just using actions/setup-python@v2 should have the C headers installed in /usr/include/python3.8 (in this case) should work as expected, the ubuntu headers aren’t required, so I deleted them.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants