问题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连接数据常见内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复