django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0....

django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

解决方案1 : 当前Django的版本是2.2,并不支持 ,改用2.1的版本。(已 试)

解决方案2:需要先装一个依赖,才能安装mysqlclient,安装依赖 sudo apt install mysql-devel (未成功)

解决方案3:上网上查了一下资料有人建议把报错地方注释掉

但试了一下注释之后会有其他错误。

django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:

ERRORS:

?: (admin.E408) 'django.contrib.auth.middleware.AuthenticationMiddleware' must be in MIDDLEWARE in order to use the admin application.

?: (admin.E409) 'django.contrib.messages.middleware.MessageMiddleware' must be in MIDDLEWARE in order to use the admin application.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容