docs(pe): add tabbed examples and warning for installing Python packages
parent
889747149d
commit
6db9b4dc1f
|
@ -522,7 +522,18 @@ influxdb3 create trigger \
|
||||||
|
|
||||||
### Install Python dependencies
|
### Install Python dependencies
|
||||||
|
|
||||||
If your plugin requires additional Python packages, install them using the CLI:
|
Use the Processing Engine’s 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
|
```bash
|
||||||
# Install a package directly
|
# Install a package directly
|
||||||
|
@ -530,11 +541,26 @@ influxdb3 install package pandas
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{{% /code-tab-content %}}
|
||||||
|
|
||||||
|
{{% code-tab-content %}}
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# With Docker
|
# With Docker
|
||||||
docker exec -it CONTAINER_NAME influxdb3 install package pandas
|
docker exec -it CONTAINER_NAME influxdb3 install package pandas
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{{% /code-tab-content %}}
|
||||||
|
|
||||||
|
{{< /code-tabs-wrapper >}}
|
||||||
|
|
||||||
|
> [!Note]
|
||||||
|
> Don’t 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.
|
This creates a Python virtual environment in your plugins directory with the specified packages installed.
|
||||||
|
|
||||||
{{% show-in "enterprise" %}}
|
{{% show-in "enterprise" %}}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue