sqlalchemy-migrate ImportError:没有名为版本控制的模块

时间:2016-02-29 10:43:28

标签: python postgresql flask flask-sqlalchemy

我开始按照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

migrate.py

0 个答案:

没有答案