To solve ImportError: No module named sqlalchemy error follow below methods.
ERROR LOG
ImportError: No module named sqlalchemy
Contents
How to solve ImportError: No module named sqlalchemy ?
Refer the given methods to solve the issue.
Solution:
Initially try with importing correctly like,
from flask_sqlalchemy import SQLAlchemy
If it doesn’t work then run the below command to install it.
pip install Flask-SQLAlchemy
Method 2 :
You need to install sqlalchemy module in your condo environment. By default, this module is not a part of the conda. You can use thee below given command to install sqlalchemy module.
$ conda install sqlalchemy
Hope the above solution works.
Also read :
ImportError: No module named six
Python SyntaxError :’return’ outside function