问答详情
源自:-

【已自行解决,问题没找到地方删掉】mysql5.6 python3.7 django1.11,下载好源码后,python manage.py makemigrations报错

python manage.py makemigrations会报错

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

Did you install mysqlclient or MySQL-python?

=========================================================================================

本机环境问题


提问者:陆烨昕 2019-02-14 11:25

个回答

  • Jack
    2019-02-16 13:27:03
    已采纳

    pip3 install mysqlclient

    这个是python连接mysql数据库用的。也可使用MySQL-python,先下载.whl包,然后手动安装