docs(pe): add tabbed examples and warning for installing Python packages

pull/6107/head
meelahme 2025-05-30 01:56:41 +09:00
parent 889747149d
commit 6db9b4dc1f
2 changed files with 27 additions and 1 deletions

View File

@ -522,7 +522,18 @@ influxdb3 create trigger \
### Install Python dependencies
If your plugin requires additional Python packages, install them using the CLI:
Use the Processing Engines embedded Python environment to install any required third-party packages (for example, `pandas`, `requests`, or `numpy`).
{{% code-placeholders "CONTAINER_NAME|PACKAGE_NAME" %}}
{{< code-tabs-wrapper >}}
{{% code-tabs %}}
[CLI](#)
[Docker](#)
{{% /code-tabs %}}
{{% code-tab-content %}}
```bash
# Install a package directly
@ -530,11 +541,26 @@ influxdb3 install package pandas
```
{{% /code-tab-content %}}
{{% code-tab-content %}}
```bash
# With Docker
docker exec -it CONTAINER_NAME influxdb3 install package pandas
```
{{% /code-tab-content %}}
{{< /code-tabs-wrapper >}}
> [!Note]
> Dont use `python -m venv` or your system Python to install packages for Processing Engine plugins.
> The Processing Engine includes its own embedded Python environment. Always use the `influxdb3 install package`
> command to ensure packages are installed in the correct environment.
{{% /code-placeholders %}}
This creates a Python virtual environment in your plugins directory with the specified packages installed.
{{% show-in "enterprise" %}}

Binary file not shown.