How to run each flow within its own virtual environment?

The SubprocessFlowRunner described in the changelog for prefect 2.0a7 (prefect/RELEASE-NOTES.md at orion · PrefectHQ/prefect · GitHub) sounds like exactly what I’d want but I haven’t been able to find any documentation on how to actually use it.

Anyone had any luck with this before?

It got much easier now, check this:
https://discourse.prefect.io/t/how-to-run-my-deployment-in-a-virtual-environment-such-as-conda/1423/2

btw 2.0a7 is the alpha version, Prefect 2 is now generally available, so it’s best if you would use the latest version, which atm is 2.6.3

Related topic: