2017.06.06走坑 按照此教程走坑
先下载mysql-python
第一步提示错误如图:
--------------------上箭头------------------上面教程太麻烦,找到了一个比较简单的
参考文章
注意权限
1.执行命令export PATH=$PATH:/usr/local/mysql/bin/
2.pip install mysql-python
3.ln -s /usr/local/mysql/lib//libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
4.ln -s /usr/local/mysql/lib/ /usr/local/mysq
走了一遍,没发现坑
2017.12.13 mac 提示ModuleNotFoundError: No module named 'ConfigParser'
google:
pip install mysqlclient
2018-04-16遇到新错误:
Python: MySQLdb and “Library not loaded: libmysqlclient.16.dylib”
解决方案:
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/