<< Click to Display Table of Contents >> Raynet One Data Hub > 25.3 > Installation Guide > Data Hub Agent > Windows > Installation and Configuration Installation Python |
This section provides instructions for installing Python 3.11, a required dependency for the Data Hub Agent on Windows. Follow these steps to check
if Python is installed on your system and to confirm its version.
To check if Python is installed, open a command prompt with administrator privileges and run the command:
python --version
If Python is not installed or the version is not 3.11 or higher, install Python 3.11 using the following steps.
Install Python 3.11 with winget on Windows
Instead of manually downloading Python from the official website, installation can be performed using PowerShell with the package manager winget, which
is pre-installed on newer Windows versions. Open Powershell with administrator privileges to ensure necessary permissions are available. Run the
following commond in PowerShell to install Python 3.11:
winget install -e --id Python.Python.3.11
WARNING If Data Hub Agent 14.1 or later is used, the connector requires Python 3.11 or higher to be installed for the Data Hub Agent. Additionally, the relevant Docker environment variable must be configured. Python 3.11 or 3.12 are recommended, as they have been tested and confirmed to work. |
After installation, run python --version in a command prompt to verify that Python is correctly installed. If the version (e.g. Python 3.11.x) is displayed,
the PATH environment variable is properly set and requires no further adjustment. Proceed to the Configuring Python Script Execution section, where the
python variable can be set to true.
If no Python version is displayed, configure the PATH environment variable manually. Verify the environment variable. Follow the steps below.
Manually Configure the PATH Environment Variable for Python
Press Win + S, type Environment Variables and select Edit the system environment variables. Edit the PATH variable under User variables.
Select PATH, then click Edit. Click New and add the paths of your python installation to the system environment variables.
[InstallationPath]\Python311\
[InstallationPath]\Python311\Scripts
Click OK to save the changes and apply the updated Python paths to the environment variables.
Run python --version with administrator privileges in a newly opened terminal to verify that the Python version is displayed.
Configuring Python Script Execution
The requests and pyjwt Python packages must be installed. To install them or verify their installation, execute the following commands in PowerShell:
python -m pip install requests
python -m pip install pyjwt
Python script execution is disabled by default in the Data Hub Agent's configuration.
Upon installation of the Data Hub Agent, the PythonScriptsExecutionEnabled variable is set to false.
![]() |
•Locate the installation folder of the Data Hub Agent •Open the configuration file Raynet.RayVentory.DataHub.Agent.dll.config in the installation folder. •Edit the file to set the key PythonScriptsExecutionEnabled to true. •Save the changes to enable the execution of Python scripts within Data Hub. |
Python scripts can now be executed as tasks in Data Hub.