我想从flask应用程序导出或导入sql db。搜索后,我发现以下应该做的工作包。
https://pypi.org/project/Flask-AlchemyDumps/
但是似乎它现在不适用于flask。
这就是我尝试过的
from flask import Flask
from flask_login import LoginManager
from flask_migrate import Migrate
from flask.ext.alchemydumps import AlchemyDumps, AlchemyDumpsCommand
from flask.ext.script import Manager
from flask_sqlalchemy import SQLAlchemy
from commands import create_tables
from config import Config
db = SQLAlchemy()
app = Flask(__name__)
manager = Manager(app)
# init Alchemy Dumps
alchemydumps = AlchemyDumps(app, db)
manager.add_command('alchemydumps', AlchemyDumpsCommand)
我收到此错误ModuleNotFoundError: No module named 'flask.ext'
有没有其他选择?