碰到過幾次開發環境關於這個的報錯了這裏記錄一下解決的方法
*python2.7 mysqldb on mac
brew install mysql-client
echo 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' >>
~/.bash_profile source ~/.bash_profile
pip install MySQL-python
python3.5 mysqldb
碰到過幾次開發環境關於這個的報錯了這裏記錄一下解決的方法
*python2.7 mysqldb on mac
brew install mysql-client
echo 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' >>
~/.bash_profile source ~/.bash_profile
pip install MySQL-python
python3.5 mysqldb
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta