在 C 文件中包含“Python.h”:
#include <Python.h>
给出Python.h: No such file or directory错误。我查找了其他有同样问题的人,但没有人直接回答如何在 arch Linux 上安装 python*-dev (python2 和 python3)。顺便说一句,这个答案没有 arch 安装命令。
Python.h: No such file or directory
c python arch
arch ×1
c ×1
python ×1