Are you asking: how can you package those dependencies so that you can import them in a Prefect flow?
If so, it depends on:
• the type of agent
• your storage
Generally, you can always build a package with setup.py and install it within the execution environment (local environment, docker container). If you need an example, check out
this sample repo incl. setup.py