1、安装pip install PyMySQL
pip install PyMySQL 或下载:https://pypi.python.org/pypi/PyMySQL 或https://github.com/PyMySQL/PyMySQL
查看:pip show pymysql