python 3.6 import pymysql错误

在3.x之后可以用pymysql来代替之前的mysqldb模块。

首先安装pip:

终端命令:

easy_install pip

随后成功安装pip

继续输入命令

pipinstall PyMySQL,

成功安装以后就可以引用pymysql了

There are two ways of constructing a software design.One is to make it so simple that there are obviously no deficiencies;the other is to make it so complicated that there are no obvious deficiencies.
原文地址:https://www.cnblogs.com/yuanjunqq/p/5774095.html