The Service Map for APM is here!

Adding a custom Python package to the Agent

Linux

The Agent contains an embedded Python environment at /opt/datadog-agent/embedded/. Common binaries such as python and pip are contained within /opt/datadog-agent/embedded/bin/.

Python packages can be installed via the embedded pip:

sudo -u dd-agent /opt/datadog-agent/embedded/bin/pip install <package_name>

Note: On macOS, remove -u dd-agent from this command.

Windows

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.

windows python package

Further Reading

Table of Contents