1. 报错信息
Traceback (most recent call last):
File "manager.py", line 4, in <module>
from flask_migrate import Migrate,MigrateCommand
ImportError: cannot import name 'MigrateCommand' from 'flask_migrate'
2. 报错原因
- 高版本的flask_migrate去掉了MigrateCommand
3. 解决办法
- 退到了2.7.0就好了
pip install flask-migrate==2.7.0