Run python plugin scripts in Windows servers
There are two methods to add Python to Windows path:
- Via the installation of a recent version of Python
- Manual entry of the paths
Via the installation of a recent version of Python:
- Download a recent version of Python.
- Check the option Add Python to PATH during the installation.
Note: Uninstall your previous version of Python if needed.
Ensure that all required Python dependency modules mentioned in the installation steps of the plugin, such as pymongo for MongoDB or psycopg2 for PostgreSQL, are installed on the server before trying to run the Python plugin on Windows.
Manual entry of the paths:
If you want to use the existing version of Python you have, you can manually add Python to Windows path.
- Open Run.
- Type sysdm.cpl and press Ok.
- Click the Advanced tab > Environment Variables.

- In the section System Variables, find the PATH environment variable and select it. Click Edit.

- If the PATH (or path) environment variable does not exist, click New. In the New User Variable window, type Path for Variable Name and for the Variable Value, enter the full Python application path followed by a semicolon and the Python Scripts path.
Note: The Python application path is the folder where you originally installed Python. The Python Scripts path is the folder located within the Python application path.
- Press OK and you will see the new Python Path under the User variables section.
You’ll now be able to install python plugin script in Windows servers. Before adding the plugin, please execute the python script and ensure the output is in JSON format.