Create a virtual environment:
$ python3 -mvenv env
Activate the environment:
$ . env/bin/activate $ pip install -r requirements.txt
And then, every time you want to run it
$ . env/bin/activate $ flask run --with-threads --exclude-patterns "/uploads/"