Centos7 使用pip安装psutil时报错,提示:
psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory #include <Python.h> ^ compilation terminated. error: command 'gcc' failed with exit status 1
解决:
安装python-devel包。
yum -y install python-devel