mysqlclient
代码语言:javascript复制# 安装 mysql-connector-c
brew install mysql-connector-c
# 配置环境
echo 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
mysql_config
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
pip install mysqlclient
# ubuntu 安装报错
pip install mysqlclient
### 解决方法
apt install default-libmysqlclient-dev