我开始按照Miguel Grinberg的教程学习Flask。我在Flask应用程序中尝试运行迁移脚本时遇到此错误。但是,当我通过Python shell导入它时,它会起作用。更新SQLAlchemy和sqlalchemy-migrate软件包没有任何改动。任何人都有任何建议我如何解决它?
Traceback (most recent call last):
File "./migrate.py", line 3, in <module>
from migrate.versioning import api
File "/home/alexxmagpie/PycharmProjects/flasktest/migrate.py", line 3, in <module>
from migrate.versioning import api
ImportError: No module named versioning
Name: sqlalchemy-migrate
Version: 0.10.0
Name: SQLAlchemy
Version: 0.7.9