mysqlclient在django启动时报错: Did you install mysqlclient?
作者:小教学发布时间:2023-09-25分类:程序开发学习浏览:106
导读: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点击安装
- 程序开发学习排行
- 最近发表