Setting Up Dependencies

In this step, we will activate our Python virtual environment and install Flask using the pip package installer. To manage the virtual environment, we’re going to use Pipenv. If you haven’t installed it, you can use the below command to install it : 

$ pip install pipenv
 

After Pipenv is installed successfully, we can create and activate our virtual environment using the command :

$ pipenv shell
 

Once our virtual environment is created, we can install the required dependencies using the command :

$ pipenv install Flask Flask-Migrate Flask-SQLAlchemy
 

Flask-SQLAlchemy is a Flask extension that provides SQLAlchemy support. Flask-Migrate is another extension that supports SQLAlchemy database migrations via Alembic.

Discussion

1

0