7👍
Did you install required prerequisites for mysqlclient?
macOS (Homebrew)
Install MySQL and mysqlclient:
Assume you are activating Python 3 venv
$ brew install mysql
$ pip install mysqlclient
If you don’t want to install MySQL server, you can use mysql-client instead:
Assume you are activating Python 3 venv
$ brew install mysql-client
$ echo ‘export PATH=”/usr/local/opt/mysql-client/bin:$PATH”‘ >> ~/.bash_profile
$ export PATH=”/usr/local/opt/mysql-client/bin:$PATH”
$ pip install mysqlclient
Source:stackexchange.com