https://prefect.io logo
Title
n

Nic

09/21/2022, 6:42 AM
Cached version of virtual env documentation states to use subflowrunnes to pass a env argument to the deploy, if you wish the flow to run in a different environment than your agent. Currently there's no documentation on the page and it returns 404 - Looking into subflowrunners, it's deprecated and states that you should use the process block. So far so good, but how would I declare my virtual env in the process block?
m

Mason Menges

09/21/2022, 3:23 PM
Hey @Nic You should be able to edit the command running you're deployment to accomplish this https://discourse.prefect.io/t/how-to-run-my-deployment-in-a-virtual-environment-such-as-conda/1423