Mac 安装flask-sqlacodegen后使用提示 -bash: flask-sqlacodegen: command not found

时间:2020-05-24 16:54:25   收藏:0   阅读:250

通过pip install flask-sqlacodegen后使用命令:flask-sqlacodegen "mysql://root:123456@IP:3306/movie_cat" --tables user --outfile "/Users/user/PycharmProjects/flask.study/common/models/user.py" --flask 

提示:-bash: flask-sqlacodegen: command not found

查看flask-sqlacodegen安装目录为:

/Library/Frameworks/Python.framework/Versions/3.6/bin

进入到次目录下运行:./flask-sqlacodegen "mysql://root:123456@IP:3306/movie_cat" --tables user --outfile "/Users/user/PycharmProjects/flask.study/common/models/user.py" --flask 

运行正常

原文:https://www.cnblogs.com/menglx/p/12951314.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!