通过pip安装mysql-python时出现 EnvironmentError: mysql_config not found
解决办法:
1,若MAC自带brew,直接在终端执行
brew install mysql-connector-c
pip install MySQL-python
2,若MAC没有自带brew,便先安装brew
安装方法:在终端中执行
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装成功后,继续执行步骤1就ok了