1.通过pip进行安装 pip install pymsql 2.验证安装是否成功 python import pymysql pymysql.VERSION 转载于:https://blog.51cto.com/suyanzhu/2315018