Joshua Newman
09/10/2024, 1:34 AMMarvin
09/10/2024, 1:34 AMEXTRA_PIP_PACKAGES
in Prefect. Let me check the docs for you.
Before I proceed, can you please confirm which version of Prefect you are using? Prefect 2.x or Prefect 3.x?Joshua Newman
09/10/2024, 1:34 AMMarvin
09/10/2024, 1:35 AMEXTRA_PIP_PACKAGES
environment variable when configuring deployments in Prefect.
For example, if you want to specify a particular version of a package, you can do it like this:
python
job_variables={"env": {"EXTRA_PIP_PACKAGES": "boto3==1.18.0 numpy==1.21.0"}}
This will ensure that boto3
version 1.18.0 and numpy
version 1.21.0 are installed.
You can see more details about this in Prefect's deployment guide.
If you need more help, let me know!