https://prefect.io logo
Title
a

Amol Shirke

09/13/2022, 9:33 AM
Hello, I need suggestion: In deployment with prefect.flow_runner import subprocess deprecated. How can I set virtualvenv as like in SubprocessFlowRunner(virtualenv=path_to_interpreter) What is possible way I can gracefully upgrade this line of code?
1
m

Mason Menges

09/13/2022, 3:48 PM
Hey @Amol Shirke If I'm understanding what you're looking for correctly I believe you would set that path as an environment variable on the process infrastructure block you're using.
a

Amol Shirke

09/13/2022, 4:12 PM
Let me try that