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

前端 未结 23 1240
夕颜
夕颜 2020-12-02 10:51

The problem Im facing while trying to connect to database for mysql. I have also given the database settings that i have used.

 Traceback (most recent call l         


        
23条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-02 11:42

    If you are using pyhton version 3.4 or above. you have to install

    sudo apt-get install python3-dev libmysqlclient-dev 
    

    in terminal. then install pip install mysqlclient on your virtual env or where you installed pip.

提交回复
热议问题