Error importing Sqlalchemy

Asked

Viewed 29 times

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

inserir a descrição da imagem aqui

how could I solve this?

  • And how you executed the code?

  • it executes but keeps showing this error

  • But I asked how you did to run the code.

  • cmd > python app.py

  • And did this within the virtual environment? Could you add in the question all these details?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.