An error occurred when mac installed mysql-python with pip

Environment:
mac system, installed mysql8, error installing mysql-python with sudo pip install mysql-python
error Code

try to solve:
1. Install mysql-connector-c
2. Set the variable export PATH=$PATH:/usr/local/mysql/bin

ask God to help solve it!

Mar.10,2021

what is your Python version? 3. 0 + doesn't seem to support MySQLdb (mysql-python) anymore. Need to use pymysql


it turns out that there is an error in my mysql and does not open it. Reinstall and start mydsql through brew will solve

.
Menu