一、Windows环境下安装PyMySQL:
在cmd中执行:
pip install PyMySQL
二、在Anaconda配置了Python开发环境的条件下:
1、在cmd中 激活当前项目所使用的开发环境
![在这里插入图片描述](https://img-blog.csdnimg.cn/2020022221445166.png
2.pip install PyMySQL
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200222214554561.png
同理
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200222222411929.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hlcm9uZ3RpYW5idQ==,size_16,color_FFFFFF,t_70
改图进入了另一个anaconda环境,指定安装了PyQt的版本。注意==号两边不要有空格。
如有错误请指点,
如有雷同,请联系