create virtual envmnt for flask code example Example 1: install flask pip install -U Flask Example 2: flask install venv python -3 -m venv venv