Install mysqlclient under MAC and mysql_config: command not found
Blog description
The information involved in the article comes from the Internet collation and personal summary, which means personal learning and experience summary. If there is any infringement, please contact me to delete it.
Explanation
I did not encounter this problem before, and this problem occurred during the installation after reinstalling the system
Problem screenshot
Solution
Execute the following command
brew install mysql-connector-c
Configure environment variables according to the prompts, if you do not configure environment variables, you will still get an error
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
export CPPFLAGS="-I/usr/local/opt/[email protected]/include"
export PATH="/usr/local/opt/mysql-client/bin:$PATH"
Remember to apply the configuration file and install mysqlclient again
pip3 install mysqlclient
thank
Omnipotent network
As well as a hardworking self