This article applies as of PRTG 26

Python packages for the Python installation of PRTG


Note: This does not apply to scripts that you use with the Script v2 sensor.


Requirements

  • Full administrator rights on the Windows system
  • As of PRTG 22.2.77

How-to guide

  1. Open a command line or PowerShell with administrator privileges (right-click, "Run as administrator")
  2. Change the directory to the \python subfolder of the PRTG program directory.
    1. 32-bit installations:
      Command line:
      cd “C:\Program Files\PRTG Network Monitor\python\”
      PowerShell:
      cd 'C:\Program Files\PRTG Network Monitor\python\'
    2. 64-bit installations:
      Command line:
      cd “C:\Program Files (x86)\PRTG Network Monitor\python\”
      PowerShell:
      cd 'C:\Program Files (x86)\PRTG Network Monitor\python\'
  3. Install the Python packages via the following command:
    .\python.exe -m pip install <package_name>
    
    For example:
    .\python.exe -m pip install requests