步骤一:在cmd中使用pip安装
pip install PyMySQL -i https://pypi.tuna.tsinghua.edu.cn/simple/
步骤二:在cmd中把pymysql导入python
C:Windowssystem32>python
>>> import pymysql
步骤三:在pycharm中安装pymysql
步骤一:在cmd中使用pip安装
pip install PyMySQL -i https://pypi.tuna.tsinghua.edu.cn/simple/
步骤二:在cmd中把pymysql导入python
C:Windowssystem32>python
>>> import pymysql
步骤三:在pycharm中安装pymysql