凉白开 2020-04-20
打开psutil官网获取源码包:
wget https://files.pythonhosted.org/packages/c4/b8/3512f0e93e0db23a71d82485ba256071ebef99b227351f0f5540f744af41/psutil-5.7.0.tar.gz
tar xzvf psutil-5.7.0.tar.gz cd psutil-5.7.0 python3 setup.py install
在执行安装的过程出现以下报错
解决方法:
yum install gcc libffi-devel openssl-devel python3-devel -y 若执行了以上命令后还是安装失败可再执行:yum install python-devel -y