1:
pip install tortoise-orm
2:
pip install aiomysql
3:
pip install asyncmy
或者使用国内清华园
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple asyncmy
4:
pip install aerich
通过 python -m
直接运行(推荐)
无需修改 PATH
,使用模块方式调用:
python -m aerich init -t settings.TORTOISE_ORM
python -m aerich init-db