Forums

ModuleNotFoundError: No module named 'flask_sqlalchemy'

Hello,

I am following the guide on https://blog.pythonanywhere.com/121/ to setup a simple database for a Flask webapp but am unable to import 'flask_sqlalchemy'. I've tried to manually import in my virtualenv bash (as per https://help.pythonanywhere.com/pages/DebuggingImportError/) with the same result. Is there something I am overlooking here?

If you couldn't import it in your virtualenv, then you either haven't installed it, or you need to import it differently.

Thanks glenn- I see now the webapp vitrualenv is not the same as the one I was testing on. Apologies for the silly question!