The Agent contains an embedded Python environment at
/opt/datadog-agent/embedded/. Common binaries such as
pip are contained within
Python packages can be installed via the embedded
sudo -u dd-agent /opt/datadog-agent/embedded/bin/pip install <package_name>
Note: On macOS, remove
-u dd-agent from this command.
Custom Python packages can be installed using the Agent’s embedded Python using the following command in Powershell:
C:\"Program Files"\Datadog\"Datadog Agent"\embedded\python -m install <package_name>
Or the package can be added in the library zipped folder that can be found at
C:\Program Files (x86)\Datadog\Datadog Agent\files
then restart your Agent.