I've set up a virtualenv folder via python -m venv virtualenv
, alongside my backend
folder containing flask code.
However, when I run the flask code, it can't find the flask module. I installed it while the virtualenv was active, and if I try running it while the virtualenv is active, then it works correctly and finds flask. But if I deactivate the virtualenv, no dice. It can't find the dependencies.
Is that how this is supposed to work, or have I misconfigured something? Do I need to always be working with the virtualenv active? Seems wrong to me.