Answer the question
In order to leave comments, you need to log in
How to install an old version of Flask?
Good day to all!
Such a problem: I am writing a semester project in my first year. I am writing it in Flask.
To work with the database, I decided to use SQLAlchemy, namely the ORM in it.
The crux of the problem is that all the examples and books I've found use the following import entry:
But my version of Flask's simply doesn't have ext.
Okay, I thought. I downloaded the flask_sqlalchemy module separately .
Earned. Created models, created tables in the database. Hooray!
But the problems didn't end there. In all examples, sessions are used to work with the database, and this is the entry:
from flask.ext.sqlalchemy import SQLAlchemy
db.session.add(model_obj)
Model.query.all()
Answer the question
In order to leave comments, you need to log in
You must use the --force-reinstall flag. To upgrade or downgrade a package to a specific version, you must use the --force-reinstall flag. The below command should work.
pip install --force-reinstall flask==1.0.2
Source: https://coderoad.ru/50571372/%D0%9A%D0%B0%D0%BA-%D...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question