【发布时间】:2015-09-29 08:27:13
【问题描述】:
我正在使用 Django,当我运行 python manage.py runserver 时收到以下错误:
ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Library/Python/2.7/site-packages/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Library/Python/2.7/site-packages/_mysql.so
Reason: unsafe use of relative rpath libmysqlclient.18.dylib in /Library/Python/2.7/site-packages/_mysql.so with restricted binary
我不完全确定如何解决这个问题。我已经通过 pip 安装了 MySQL-python。我更早地关注了this。
我还想指出这是 El Capitan Beta 3。
【问题讨论】:
-
你有没有解决这个问题?我也有同样的问题
-
我目前正在使用 Beta 2。昨天升级了,但这仍然是一个问题。
标签: python mysql django dynamic-linking osx-elcapitan