python2,mac,具體參照網上的資料,可是出現一個問題,idea依然提示改錯誤。python
藉助google搜索,查找到如下命令能夠解決,但願對遇到以上問題的同窗有幫助。mysql
pip install mysql-connector-repackagedsql
https://stackoverflow.com/questions/29850322/python-mysql-connector-error-in-mac-osx-10-10ide