MENU

提示 psutil installation failed

March 27, 2019 • Read: 190 • linux报错阅读设置

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

添加EPEL

wget -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-g77
OK,可以了

兼总条贯 知至知终