Try this first.
brew install mysql-connector-c
sudo pip install MySQL-python
If fail then try below.
brew unlink mysql
brew install mysql-connector-c
vi /usr/local/bin/mysql_config
Found a line with libs="$libs -l"
replace it by
libs="$libs -lmysqlclient -lssl -lcrypto"
pip install mysqlclient
brew reinstall mysql-connector-c
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
source .bash_profile
https://ruddra.com/install-mysqlclient-macos/