Install psutil (Linux system) using source package

1. Get the source package

Open the psutil official website to obtain the source code package:

wget https://files.pythonhosted.org/packages/c4/b8/3512f0e93e0db23a71d82485ba256071ebef99b227351f0f5540f744af41/psutil-5.7.0.tar.gz

Second, start the installation

tar xzvf psutil-5.7.0.tar.gz 
cd psutil-5.7.0 
python3 setup.py install

The following error occurs during the installation process

 

 

 

 

 

 Solution:

yum install gcc libffi-devel openssl-devel python3-devel -y 
If the installation fails after executing the above command, you can execute: yum install python-devel -y

 

Guess you like

Origin www.cnblogs.com/wuweierdao/p/12741201.html