What is the format for adding multiple pip package...
# ask-community
d
What is the format for adding multiple pip packages for a KubernetesJob?
this isn't working for me:
Copy code
k8s_job = KubernetesJob(
    namespace="prefect-server",
    image="prefecthq/prefect:2.8.2-python3.11",
    env={"EXTRA_PIP_PACKAGES": "adlfs prefect-dask"},
    job=KubernetesJob.job_from_file("k8s_flow_run_job_manifest.yaml"),
)
k8s_job.save("prod", overwrite=True)
r
you need to use infra_overrides infra_overrides['env'] = { 'EXTRA_PIP_PACKAGES': 'bla bla'}
👍 1
z
Hm, just
env
should be working
Why would you need to use infra overrides?
r
env is for environment variables
z
This is an environment variable that is read by our entrypoint
r
hmmm that didnt used to work