<@ULVA73B9P> How can I specify package version whe...
# marvin-in-the-wild
j
@Marvin How can I specify package version when using EXTRA_PIP_PACKAGES
m
You want to know how to specify the version of a package when using
EXTRA_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?
j
@Marvin 2.x
m
You can specify package versions using the
EXTRA_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:
Copy code
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!