在C文件中包含"Python.h“: #include <Python.h> 给出Python.h: No such file or directory错误。我寻找其他有同样问题的人,但没有人直接回答如何在arch Linux上安装python*-dev (python2和python3)。顺便说一句,this answer没有arch安装命令。
building '_regex' extension creating build/temp.linux-x86Python2/_regex.c:46:20: fatal error: Python.h: No such file or directory
#include "Python.h"-> build/lib.linux-
c/_cffi_backend.c:2:10: fatal error: Python.h: No such file or directory我尝试了sudo apt-get install python3.6-dev(以及python3-dev和python-dev),但是当我输入locate Python
我正在尝试使用pip3 install --user pickle5命令在linux上安装pickle5包,但是当我这样做时,我得到了错误 pickle5/compat.h:1:20: fatal error: Python.h: No such file or directory ^
compilation