0
I cannot import flask_sqlalchemy even after installing
from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
^aqui mostra o erro: ImportError: "flask_sqlalchemy" could not be resolved
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
I am using vitualenv in windows 10 and have already installed both flask and slqalchemy in venv
how could I solve this?
And how you executed the code?
– Woss
it executes but keeps showing this error
– Leanz
But I asked how you did to run the code.
– Woss
cmd > python app.py
– Leanz
And did this within the virtual environment? Could you add in the question all these details?
– Woss