flask run from idle code example Example 1: flask install venv python -3 -m venv venv Example 2: flask activ environment . venv/bin/activate