You need to install 'flask'.
python3 -m venv env source env/bin/activate pip install Flask python -m flask --app index run