python - 运行本地服务器时 django 中的数据库错误?

标签 python django

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?

即使安装了 mysqlclient 也会出现此错误 python版本:Python 3.6.9

最佳答案

您必须使用pip install mysqlclient在虚拟环境中安装mysqlclient。

关于python - 运行本地服务器时 django 中的数据库错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60092294/

相关文章:

python - 如何使用 scikit-learn silhouette score 计算 scipy 的 fcluster 的 Silhouette Score?

python - 将Python字符串拆分为对列表

python - Django HTMLForms 属性错误 属性错误 : module 'polls.views' has no attribute 'index'

python - Django表单修改HTML标签

python - Django Celery 任务成功但客户端等待

jquery - AJAX 的 Django ORM 问题

python - 在 __eq__ 中检查身份是否有意义?

Python:从 multiprocessing.Process 获取回溯

python - 为每个线程定义一个记录器

Django - ORM 问题