I want to install additional Python packages that are not included in the Python installation by default. How can I do that?
Article Comments
For the benefit of anyone who finds this thread in future, be aware you need to be logged into Windows as THE Administrator account to install the required modules. Being logged in as AN administrator is insufficient.
Oh, and you also need to be on a release later than 22.2.77.2204:
PRTG Version 22.2.77.2204 broke compatibility with pip.exe install (to install Python packages). With this PRTG release we have removed support for this command to prevent unexpected errors. As of now the only supported way of installing a Python package to use Python Script Advanced sensor is python.exe -m pip install. Please also see our Knowledge Base article for more information about Python installation: https://helpdesk.paessler.com/en/support/solutions/articles/90686.
- Greig.
Sep, 2022 - Permalink
This article applies as of PRTG 22
How to install Python packages for the Python installation of PRTG
Follow the instructions below:
32-bit installations:
Command line:
cd “C:\Program Files\PRTG Network Monitor\python\”
PowerShell:
cd 'C:\Program Files\PRTG Network Monitor\python\'
64-bit installations:
Command line:
cd “C:\Program Files (x86)\PRTG Network Monitor\python\”
PowerShell:
cd 'C:\Program Files (x86)\PRTG Network Monitor\python\'
.\python.exe -m pip install <package_name>
For example:
.\python.exe -m pip install requests
More
Jun, 2022 - Permalink