全球主机交流论坛

标题: 安装宝塔的时候出现下面的错误请问怎么解决 [打印本页]

作者: imyoy    时间: 2019-11-13 11:39
标题: 安装宝塔的时候出现下面的错误请问怎么解决
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.
复制代码


作者: qq290598268    时间: 2019-11-13 11:40
DD重装 然后再装  或者修改DNS
作者: imyoy    时间: 2019-11-13 12:38
qq290598268 发表于 2019-11-13 11:40
DD重装 然后再装  或者修改DNS

修改DNS失败,请问怎么dd centos7,有一键脚本么?
作者: 老贺023    时间: 2019-11-13 12:39
提示: 作者被禁止或删除 内容自动屏蔽
作者: imyoy    时间: 2019-11-13 16:37
老贺023 发表于 2019-11-13 12:39
yum install gcc
yum -y install python-devel.x86_64

可以了,谢谢
作者: leo12036ok    时间: 2019-11-13 17:00
提示: 该帖被管理员或版主屏蔽




欢迎光临 全球主机交流论坛 (https://ddzzz.eu.org/) Powered by Discuz! X3.4