windows10 pip install MySQL-python mysqlclient
https://dev.mysql.com/downloads/connector/python/
到上述地址下载对应系统的驱动程序安装即可。
安装mysqlclient方法如下:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python
pip install mysqlclient‑1.3.13‑cp36‑cp36m‑win_amd64.whl