pip3 install mysqlclinet
error: command 'clang' failed with exit status 1
Solution:
Back up the original directory
/Library/Developer/CommandLineTools
sudo mv /Library/Developer/CommandLineTools/ /Library/Developer/CommandLineTools_bak0319
Open the URL https://developer.apple.com/download/more/ and search for xcode 11.3.1
After downloading, click and keep clicking Next to complete the installation
Install pip3 install mysqlclient again
Reference blog