Setup a PIPENV and run these commands under
pipenv shell
pipenv install scapy[basic]
pipenv install flask
For running this app, make sure you're on admin mode then give
export FLASK_APP=app.py
this specifies, how to load the application
Then Run
export FLASK_ENV=development flask run
this makes the program run with DEBUG mode - ON.