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

前端 未结 23 1225
夕颜
夕颜 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:20

    Faced similar issue. I tried installing mysql-python using pip, but it failed due to gcc dependency errors.

    The solution that worked for me

    conda install mysql-python
    

    Please note that I already had anaconda installed, which didn't had gcc dependency.

提交回复
热议问题