MySQLdb error when running python server on MacOSX10.6

前端 未结 2 1208
甜味超标
甜味超标 2021-02-10 07:12

Running my server (python manage.py runserver) yielded this error:

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

2条回答
  •  失恋的感觉
    2021-02-10 07:41

    It looks like you have everything installed right, but it can't find libmysqlclient. Have you tried the following?

    > sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
    > sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql
    

提交回复
热议问题