Join Slack
Powered by
How can we an install and import libraries during ...
# ask-community
b
Balveer Singh
06/24/2022, 12:36 PM
How can we an install and import libraries during runtime in python script.
m
Maverick Humbert
06/24/2022, 12:41 PM
You need to build a custom image of prefect and add your dependencies to the Dockerfile 🙂
Maverick Humbert
06/24/2022, 12:43 PM
https://docs.prefect.io/orchestration/flow_config/docker.html#installing-extra-dependencies-at-runtime
k
Kevin Kho
06/24/2022, 2:05 PM
You can also look at the third example
here
if using local agent. Otherwise you need them in the container like Maverick suggested
9
Views
Open in Slack
Previous
Next