出现No such file or directory的错误,有两种情况,一种是没有Python.h这个文件,一种是Python的版本不对,
可以进入/usr/include/文件夹下的Pythonx.x文件夹里查找是否有Python.h这个文件。
如果是第一种情况,那么需要安装python-dev这个包,(sudo apt-get install python-dev)。
---------------------
这里记录一下,原文转自于:
https://blog.csdn.net/chenyulancn/article/details/8025847