virtual envirnment python flask code example Example 1: install flask pip install flask Example 2: flask install venv python -3 -m venv venv