1、在dos窗口中,进入到python安装目录中Scripts文件夹下; 2、执行安装命令: python pip.exe install pyMysql,等待至到出现下面提示,代表安装成功 3、测试是否成功安装