solution
1. Install mysql-connector-python drive PIP the install mysql-connector-python 2. Modify Code engine = create_engine ( "mysql + pymysql : // root: password @ localhost / my_db") to: Engine = create_engine ( "+ MySQL mysqlconnector: // root: password @ localhost / my_db ")
Detailed documentation may refer to: https://www.jianshu.com/p/e09eb9cc2830