mac安裝sudo pip install MySQL-python報錯EnvironmentError: mysql_config not found解決方法

PATH="/usr/local/mysql/bin:${PATH}"
export PATH
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/
export VERSIONER_PYTHON_PREFER_64_BIT=no
export VERSIONER_PYTHON_PREFER_32_BIT=yes

參考文檔:http://www.cnblogs.com/ifantastic/archive/2013/04/13/3017677.htmlhtml

 

ubuntu下安裝sudo pip install MySQL-python報同上面同樣的錯誤解決方法:python

一、sudo apt-get install python-setuptoolsmysql

二、sudo apt-get install libmysqld-devsql

三、sudo apt-get install libmysqlclient-devubuntu

四、sudo apt-get install python-devbash

sudo pip install MySQL-pythonhtm

相關文章
相關標籤/搜索