安装宝塔的时候出现下面的错误请问怎么解决

搬瓦工机场JMS

Virmach家的小鸡升kvm,之前用的宝塔5.9,打算重装,选的centos7,然后一路下来到python那里卡住了,提示错误如下,请问大佬们怎么办?试了两次都一样,网上搜的安装python开发环境也不行

  1. building ‘psutil._psutil_linux’ extension
  2. creating build/temp.linux-x86_64-2.7
  3. creating build/temp.linux-x86_64-2.7/psutil
  4. gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=522 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
  5. psutil/_psutil_linux.c:12:20: fatal error: Python.h: No such file or directory
  6. #include <Python.h>
  7.                     ^
  8. compilation terminated.
  9. error: command ‘gcc’ failed with exit status 1
  10. =================================================
  11. psutil installation failed.

复制代码

广东网友:DD重装 然后再装  或者修改DNS
河南网友:修改DNS失败,请问怎么dd centos7,有一键脚本么?
宁夏网友:
yum install gcc
yum -y install python-devel.x86_64

未经允许不得转载:美国VPS_搬瓦工CN2 GIA VPS » 安装宝塔的时候出现下面的错误请问怎么解决

赞 (0) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏