mysqlclient is a fork of MySQLdb1 that enables python3 to interface with a MySQL database on an Ubuntu server.
- First, ensure that you have python3 and MySQL server installed on your machine.
- Then, install the following dependencies for mysqlclient:
$ sudo apt install python3-dev default-libmysqlclient-dev build-essential
- Finally, you can install mysqlclient via pip:
(venv) $ pip install mysqlclient