Mac 安装 mysqlclient 报错配置

2019-12-18 11:28:57 浏览数 (1)

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

0 人点赞