报错:
pip3 install psutil
compilation terminated.
error: command 'gcc' failed with exit status 1
解决:
yum install python3-devel
继续安装:
[root@centos ~]$ pip3 install psutil
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting psutil
Using cached https://files.pythonhosted.org/packages/8f/57/828ac1f70badc691a716e77bfae258ef5db76bb7830109bf4bcf882de020/psutil-5.9.2.tar.gz
Installing collected packages: psutil
Running setup.py install for psutil ... done
Successfully installed psutil-5.9.2