出現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