First I created __init__.py
__init__.py
from flask import Flask app = Flask(__name__)
Then in a separate file, in the same directory,
Ensure to set your PYTHONPATH to the src/ directory as well. Example export PYTHONPATH="$PYTHONPATH:/path/to/your/src"
export PYTHONPATH="$PYTHONPATH:/path/to/your/src"