1# install psutil (basic, if path is not set yet)
2py -m pip install psutil
3# or set PATH to use pip:
4setx PATH "%PATH%;C:\<path\to\python\directory\>\Scripts"
5pip install psutil
6# or
7pip3 install psutil --upgrade
8# if "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed" [!]:
9py -m pip install --trusted-host pypi.python.org pip psutil
10# if PermissionError: [WinError 5] Access is denied
11py -m pip install --user psutil
12# or via creating a virtual environment venv:
13py -m venv c:\path\to\new\environment
14# then execute:
15c:\path\to\new\environment\Scripts\activate.bat