1. 程式人生 > >psutil安裝錯誤"Python.h: No such file or directory"解決

psutil安裝錯誤"Python.h: No such file or directory"解決

下載psutil原始碼包:wget https://pypi.python.org/packages/source/p/psutil/psutil-2.0.0.tar.gz

然後解壓安裝:sudo python setup.py install,出現如下錯誤:


需要安裝依賴包:sudo yum install python-devel.x86_64。

重新安裝即可。