Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Psutil module installation

Shulou Source: shulou.com Published: 2022-06-01 04:05:04 10月06日 Update

First, psutil installation (this article installs on a clean ubuntu14.04 system):

First switch root permissions, then switch to administrator permissions (sudo-s)

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

Pythonsetup.py install

Note: if you make an error in installing the Times:

Psutil/_psutil_linux.c:12:20:fatalerror:Python.h: there is no such file or directory

# include

^

Compilationterminated.

Error:command'x86_64-linux-gnu-gcc'failedwithexitstatus1

It can be solved as follows:

Apt-get install python-dev

Tags: Permissions switching Clean File Times is in directory administrator system management module Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno MariaDB Docker Huawei macOS