2013年11月22日 星期五

[MAC] Mac OS 升級後,遇到 MySQL_python import error

這問題,幾乎我只要升級MacOS就會遇到一次

 

Error Message

Referenced from: /Library/Python/2.7/site-packages/MySQL_python-1.2.4-py2.7-macosx-10.9-intel.egg/_mysql.so

Reason: image not found

 

Troubleshooting steps:

1.找出你安裝的Mysql_python 版本

pip freeze local|grep MySQL

2.

find out what library paths the MySQLdb C extension _mysql.so is looking for

otool -L /Library/Python/2.7/site-packages/MySQL_python-1.2.4-py2.7-macosx-10.9-intel.egg/_mysql.so

 

2. Install  or   Just copy missing libmysqlclient.xx.dylib to the lib folder

 otool -DX /opt/local/lib/mysql5/mysql/libmysqlclient_r.16.dylib

沒有留言:

demo_article

使用 msty.app 和 Knowledge Stacks 建立個人知識庫系統 說明 嘗試利用local llm自動從文字檔轉成影音檔 利用AI自動對文件檔產生影音檔案 - YouTube 引言 在資訊爆炸的時代,我們每天接收大量的資訊,但如何有效地管理...