For the first time when Python3 requires MySQLdb, you can install Mysqlclient,

After adding

import pymysql

pymysql.install_as_MySQLdb()
Copy the code

With respect to OK