Install python3-pymysql by entering the following commands in the terminal:
sudo apt update sudo apt install python3-pymysql
Description:
Pure-Python MySQL Driver - Python 3.x
This package contains a pure-Python MySQL client library. The goal of PyMySQL is to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython and Jython. . This package contains the Python 3.x module.
Homepage: https://github.com/PyMySQL/PyMySQL/
Version: 0.8.0-1
Section: universe/python