Ubuntu下 fatal error: Python.h: No such file or directory 解决方法
参考:
fatal error: Python.h: No such file or directory
Ubuntu下 fatal error: Python.h: No such file or directory 解决方法
根据使用的Python版本安装python-dev
库。
sudo apt-get install python-dev # for python2.x installs
sudo apt-get install python3-dev # for python3.x installs
比如,在使用Python3.6的情况下,通过:
sudo apt-get install python3.6-dev
安装python-dev
。
2018.6.
To improve is to change, to be perfect is to change often.