Mac在第一次安装mqsql的时候,一般通过pip install mysqlclient
的命令去安装,然后会报一个EnvironmentError: mysql_config not found
的错误,解决如下:
用brew安装mysql:
1
brew install mysql
安装brew的方法如下:
1
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"