美文网首页Python
Python命令创建mysql数据表问题

Python命令创建mysql数据表问题

作者: 左木北鱼 | 来源:发表于2019-12-30 15:55 被阅读0次

1、运行命令python manage.py makemigrations抛出异常

Traceback (most recent call last):
.....
    raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

2、注释掉版本抛错

路径:Lib/site-packages/django/db/backends/mysql/base.py

相关文章

网友评论

    本文标题:Python命令创建mysql数据表问题

    本文链接:https://www.haomeiwen.com/subject/fbjmoctx.html