Install Python psutil module on 64-bit CentOS7
Record the process of installing Python psutil module on 64-bit CentOS7.
1. log on to CentOS as root and execute the following commands in sequence:
Wget https://pypi.python.org/packages/source/p/psutil/psutil-2.1.3.tar.gz
Tar zxvf psutil-2.1.3.tar.gz
Cd psutil-2.1.3/
Python setup. py install
2. When executing the last installation command of the preceding command, the following problems are encountered:
This prompt indicates that the python-dev dependency environment is missing. The solution is to install the corresponding environment. Run the following command to install the python-dev environment:
Yum-y install python-devel.x86_64
3. After installing the python-dev environment, run the python setup. py install installation command again. Inspection successful:
PS: psutil-pids () is used to list all processes (here it is only used to check whether Python's psutil module has been installed successfully !)
You may also like the following article about Python:
Installation of Python in Linux and precautions
Install and use the Python rq module in Ubuntu 14.04
Directly run Python code without the need for the operating system
Install Python3.4 on CentOS source code
Python core programming version 2. (Wesley J. Chun). [Chinese version of hd pdf]
Python development technology details. (Zhou Wei, Zong Jie). [hd PDF scan version + book guide video + code]
Obtain Linux information using a Python script
Build a desktop algorithm transaction research environment using Python in Ubuntu
A Brief History of Python Development
Python details: click here
Python: click here