mac下python import MySQLdb失败的解决方案
摘要:
在mac下使用MySQLdb模块,import时遇到以下错误:1.Library not loaded: libmysqlclient.18.dylib解决方案:export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/mysql/lib2.ImportError: dlopen(/Library/Python/2.6/site-packages/_mysql.so, 2): no suitable image found. Did find: /Library/Python/2.6/site-packages/_mysql.so: mach 阅读全文
posted @ 2013-03-15 18:14 大宝pku 阅读(5292) 评论(0) 推荐(0) 编辑