how to import sqlalchemy in flask code example Example: how to install flask_sqlalchemy $ pip install -U Flask-SQLAlchemy