需要安装mysqlclient
命令:
pip install mysqlclient
启动如果报:
/bin/sh: mysql_config: command not found
安装mysql-devel
yum install mysql-devel -y
在启动就不会报错了。
参考:
https://stackoverflow.com/questions/29565665/no-installed-app-with-label-admin-running-django-migration-the-app-is-insta
https://www.yuzhi100.com/article/cnetos-7-pip-mysqlclient-mysqlconfig-not-found