CentOS7 -- 64 install python's psutil module, centos7 -- 64 psutil

Source: Internet
Author: User

CentOS7 -- 64 install python's psutil module, centos7 -- 64 psutil

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 !)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.