install flask in python 3.7 code example Example 1: install flask pip install flask Example 2: flask activ environment py -3 -m venv venv