flask on a virtual enviroment why code example Example 1: flask activ environment . venv/bin/activate Example 2: flask install venv python -3 -m venv venv