cmd 中运行 pip3 install PyMySQL

或者采用git

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

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

05-11 22:23