python的psutil安装报错

2020-12-11  本文已影响0人  哆啦A梦_ca52

安装宝塔的时候 python报错 更新下Python即可

psutil/_psutil_linux.c:12:20: fatal error: Python.h: No such file or directory
 #include <Python.h>
                    ^
compilation terminated.
error: command 'gcc' failed with exit status 1

image.png

安装宝塔时候报错 这个错误时候说pythone有错误 要升级

 yum -y install python-devel.x86_64   yum安装pythone报错 

image.png

运行:rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 即可

上一篇下一篇

猜你喜欢

热点阅读