centos7 安装软件报错 psutil installation failed缺少gcc环境yum install gcc gcc-c++ gcc-g77 用yum install gcc 安装不上 显示noting to do更换yum源cd /etc/yum.repos.d 备份以下原来系统中的yum源文件wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 或curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 添加EPELwget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo 执行如下清除命令yum clean all yum makecache 再运行yum install gcc gcc-c++ gcc-g77OK，可以了