python3不支持MySQLdb改为了支持pymysql,这里进行安装
linux上安装
wget https://pypi.python.org/packages/29/f8/919a28976bf0557b7819fd6935bfd839118aff913407ca58346e14fa6c86/PyMySQL-0.7.11.tar.gz#md5=167f28514f4c20cbc6b1ddf831ade772
tar -zxvf PyMySQL-0.7.11.tar.gz
cd PyMySQL-0.7.11
python3 setup.py install
window上安装
D:\SoftWare\python35\Scripts>pip install pymysql