Area: Ingestion
Sub-Area: Custom Dependencies
Applies to: Cloud
Issue
You add a package to the "Extra Pip Libraries" field of an ingestion source, or to a recipe, and the run fails or the package is not installed.
You Might Be Asking
- What format does the Extra Pip Libraries field take?
- Can I put a pip key in my recipe?
- How do I set extra pip libraries from the CLI?
Cause
The field has a strict format, and recipes have no pip setting.
- Extra Pip Libraries takes a JSON array of pip requirement strings. The executor parses the field with
json.loads. A barepackage==versionor one package per line fails. - Recipes have no pip field. The top-level recipe keys are only
source,sink,transformers,flags,reporting,run_id,datahub_api,pipeline_name,failure_logandrecording. Recipes forbid other keys, so a key such asextra_pip_packagesfails validation. - The UI stores your libraries on the ingestion source as
extra_pip_requirements, not in the recipe. The Remote Executor installs them for runs it executes.
Solution
Set the field in the UI
- Open Manage Data Sources and edit the source, or click Create Source.
- On the Connection Details step, expand the advanced settings section.
- Enter a JSON array in Extra Pip Libraries, for example:
["sqlparse==0.4.3"]
or
["custom-transformer==1.0.0", "additional-library>=2.0.0"]
- Click Save and Run.
Remove any key such as extra_pip_packages from your recipe.
Set the libraries from the CLI
Use datahub ingest deploy. It uploads the recipe as an ingestion source. Pass the libraries as a JSON list string:
datahub ingest deploy -c recipe.yml --name my-source --extra-pip '["memray"]'
You can also set them in a top-level deployment: block in the recipe. The CLI removes this block before upload.
deployment:
name: my-source
extra_pip: '["polars==1.35.2"]'
The CLI stores extra_pip as extra_pip_requirements on the source.
If the run still fails
- If a pin conflicts with a connector, remove it. For example, the
looker,lookmlandmodeextras requirepython-liquid>=2.0.0,<3.0.0, so a pin such aspython-liquid<2conflicts with them. - If the venv setup fails, the run log shows
❌ Venv setup failed: <error>. Check that the executor can reach your Python package index. To use a private index or mirror, setUV_INDEX_URL(andUV_EXTRA_INDEX_URLif needed) in the Remote Executor's own environment. The executor installs with uv, not pip. - Sources that use a bundled CLI Version run from a pre-built venv with no runtime install. Use a dynamic venv (leave CLI Version empty) if you need extra pip libraries installed at run time.