安装pymysql后,import pymysql,pycharm编辑器中报错

cmd 中运行 pip3 install PyMySQL

或者采用git

git clone https://github.com/PyMySQL/PyMySQL
cd PyMySQL/
python3 setup.py install

原文地址:https://www.cnblogs.com/jiang-xy/p/9225339.html