我是靠谱客的博主 俏皮口红,最近开发中收集的这篇文章主要介绍Python3连接数据常见的问题,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

问题1;mysqlclient 1.3.13 or newer is required; you have 0.9.3.

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

解决方法:

1)进入D:ProgramsPythonPython37Libsite-packagesdjangodbbackendsmysqlbase.py注释35-36两行


问题2;AttributeError: 'str' object has no attribute 'decode'

AttributeError: 'str' object has no attribute 'decode'

解决方法:

1)进入D:ProgramsPythonPython37Libsite-packagesdjangodbbackendsmysqloperations.py

修改146行,把decode修改为encode

https://www.cnblogs.com/ygzy/p/10841289.html

 

最后

以上就是俏皮口红为你收集整理的Python3连接数据常见的问题的全部内容,希望文章能够帮你解决Python3连接数据常见的问题所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(50)

评论列表共有 0 条评论

立即
投稿
返回
顶部