I am writing a flask app in VisualStudio. The first lines of my __init__.py
file for the application are:
import os
from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
When I launch the application it opens in my webbrowser (locally) without any fuss. However, if I open an interpreter and write:
from app import app
it fails as it says that there is no module called flask_sqlalchemy. I am using a virtual env and I can see that Flask-SQLAlchemy is installed. When I do pip install it says that the requirement is already satisfied.
Any ideas?