I also ran into this problem, below is my step:
1. brew install mysql-connector-c
2. pip install mysqlclient
and then ran into this error, I traced the source code, but solved it, then another error occurred.
so I changed the installation method of mysqlclient simply:
1. brew install mysql
2. pip install mysqlclient
it worked for me, there were no errors.
source share