2013年2月18日 星期一

Python.h: No such file or directory

fatal error: Python.h: No such file or directory
無法正常編譯

有時候,我們在剛裝好的主機上想要編譯某些程序,卻出現如上方般的錯誤,別緊張,這是由於系統缺少了python的開發環境套件所引起,解決的方法也很簡單,補安裝python的開發套件即可

Fedora(RedHat, centOS)系列的解決方式

yum install python-devel

Debian系列

sudo apt-get install python-dev

沒有留言:

張貼留言