全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1227|回复: 5

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

[复制链接]
发表于 2019-11-13 11:39:11 | 显示全部楼层 |阅读模式
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.
复制代码

发表于 2019-11-13 11:40:03 | 显示全部楼层
DD重装 然后再装  或者修改DNS
 楼主| 发表于 2019-11-13 12:38:11 | 显示全部楼层
qq290598268 发表于 2019-11-13 11:40
DD重装 然后再装  或者修改DNS

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

可以了,谢谢
发表于 2019-11-13 17:00:32 | 显示全部楼层
提示: 该帖被管理员或版主屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-1 11:14 , Processed in 0.071516 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表