联系我们
简单又实用的WordPress网站制作教学
当前位置:网站首页 > 程序开发学习 > 正文

mysqlclient在django启动时报错: Did you install mysqlclient?

作者:小教学发布时间:2023-09-25分类:程序开发学习浏览:59


导读:C:\Users\86188\AppData\Local\Programs\Python\Python39\python.exeD:\dj\mysite\manage.pyru...

C:\Users\86188\AppData\Local\Programs\Python\Python39\python.exe D:\dj\mysite\manage.py runserver 8000
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File “C:\Users\86188\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\mysql\base.py”, line 15, in
import MySQLdb as Database
ModuleNotFoundError: No module named ‘MySQLdb’

The above exception was the direct cause of the following exception:

Did you install mysqlclient?

别在那里瞎安装了,直接去setting(设置)里搜索mysqlclient点击安装
在这里插入图片描述





程序开发学习排行
最近发表
网站分类
标签列表