后台创建管理员 createsuperuser 时 报django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?

结果版本0.9.3

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

需要pip指定版本号安装

结果清华源没有这个版本,换阿里云

pip install -i https://mirrors.aliyun.com/pypi/simple/ pymysql==1.3.13

阿里也没有,只能国外了

pip install jupyter -i http://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn

原文地址:https://www.cnblogs.com/spidernyp/p/12442163.html

时间: 2024-11-06 21:51:28

后台创建管理员 createsuperuser 时 报django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?的相关文章

Django启动时找不到mysqlclient处理 django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?

在使用Django2.0 并配置了mysql作为数据库时,启动报错: 报错1:找不到mysqlclient django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? 解决方法 项目(settings.py同级)目录中__init__.py中添加 import pymysql pymysql.install_as_MySQLdb() 报错2:版本检查

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

django 迁移数据库报错 django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.Did you install mysqlclient? 解决方案:在settings.py同级目录中的__init__.py文件中加入: import pymysql pymysql.install_as_MySQLdb() 原文地址:https://www.cnblogs.com/pfeiliu/p/12045021

django配置使用mysql数据库运行报错:django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'

今天在把django的默认数据库sqlite3切换为MySQL数据库时报错:django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb' 报错原因:django虚拟环境没有安装pymysql模块 解决: 先安装pymysql:pip install pymysql 然后在项目的 init.py 文件中添加以下代码: 把django的默认数据库sqlite3切

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb的解决方法

今天自学django创建mysql数据库表的时候报了如下错误: raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb在我百度查询下,终于找到了问题所在,就是没有安装MySQL-python.基于这个问题,网上提供

Error loading MySQLdb module: No module named 'MySQLdb'. django.core.exceptions。

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'. django.core.exceptions.配置错误:错误加载mysqmodule模块:没有名为"mysqsq"的模块. 解决方法:在Django的工程同名子目录的__init__.py文件中添加如下语句 from pymysql import install_as_MySQLdb

关于报错:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.7.11.None

线上项目转到测试,setting连接本地数据库报错. 1 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.7.11.None Python安装路劲下的Python36-32\Lib\site-packages\django\db\backends\mysql\base.py文件下. 注释下面语句 1 if version < (1, 3, 3): 2 r

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

Django报错 | "django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.问题解决方案 1 问题分析 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3. 解读:django.core.except

Django2.2连接mysql数据库出现django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.7.11.None问题

在使用Django2.2开发的时候,想要使用mysql数据库,在settings.py文件中更改命令: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'python', 'USER': "root", 'PASSWORD': "yhr2323214310", 'HOST': '', 'PORT': '' }} 再安装好pymysql,然后在__init__.py文件中

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

报错环境: python=3.7,django=2.2,PyMySQL=0.9.3 抛出异常: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3. 报错场景: 1.启动django项目 2.更新表:python manage.py makemigrations 报错原因:安装Django后不想折腾mysqlclient那堆库文件,直接装了pymy