When using the Python component Psutil, you need to install it first, as follows:
wget https://pypi.python.org/packages/source/p/psutil/psutil-2.0. 0.tar.gz -xzvf psutil-2.0. 0. tar.gz cd psutil-2.0. 0 python setup.py install
The installation process may have the following error:
Psutil/_psutil_linux.c:421:error:expected specifier-qualifier-list before?. Yobject?psutil/_psutil_linux.c:in function? Nit_psutil_linux?. Psutil/_psutil_linux.c:470:error:?. Yobject?. Undeclared (First useinchThis function) Psutil/_psutil_linux.c:470:error: (Each undeclared identifier isreported only Oncepsutil/_psutil_linux.c:470:error: forEach function it appearsinch.) Psutil/_psutil_linux.c:470:error:?. Odule?. Undeclared (First useinchThis function) Psutil/_psutil_linux.c:470: warning:implicit declaration of function?. Y_initmodule?psutil/_psutil_linux.c:470:error:?. Sutilmethods?. Undeclared (First useinchThis function) Error:command'GCC'Failed with exit status 1
Error original because no installation python-devel caused, direct yum installation can.
Python installation Psutil