flask_mysql
Updated:
Contents
Firstly install python-setuptools
| sudo apt-get install python-setuptools
then install mysql-python
| easy_install mysql-python
EnvironmentError: mysql_config not found
这是因为缺少libmysqlclient-dev,如果你安装debian/ubuntu,只需要执行命令:
| sudo apt-get install mysql
| sudo apt-get install libmysqlclient-dev
mysql.c:29:20: 致命错误: Python.h:没有那个文件或目录
| sudo apt-get install python-dev
借鉴的一些网站:
https://flask-mysql.readthedocs.org/en/latest/
http://docs.torriacg.org/docs/flask-sqlalchemy/config.html
http://blog.csdn.net/a657941877/article/details/8944683