12/10/2020, 9:19 PM
ModuleNotFoundError How do I tell the flow where the library is found? The package I want to use is installed in my virtualenv, and the flow runs from the terminal. But when clicking "QuickRun" from the browser, the same flow complains of ModuleNotFoundError.

Michael Kennely

12/17/2020, 9:18 PM
Hey Jack! Seems like you and I went through similar issues. Not sure what your setup is but what helped me solve my issue was to install/run my agent and supply the path to my virtual environment via the
argument. for example:
prefect agent start -t {your_token} --name {agent_name} --import-path ~/.venv/test_env/lib/python3.8/site-packages
Anything that you pip installed in your virtual environment should now be accessible when your flow runs