- OSError: mysql_config not found
- mac python3 mysqlclient 安装失败
- OSError: mysql_config not found
- OSError: mysql_config not found
- 解决问题:OSError: mysql_config not f
- ubuntu16.04安装flask-mysqldb失败
- python与mysql数据库连接衍生的几个问题
- windows cannot load library 'lib
- 解决CentOS mysql_config not found错
- 在MAC下安装mysqlclient出现mysql_config
pip install mysqlclient时出错

未安装mysql-server和mysql-client
执行以下语句:
sudo apt-get install mysql-server mysql-client
sudo apt-get install libmysqlclient-dev python3-dev
mac 需要安装brew
需要添加环境
在/.zprofile或者/.bash_profile文件末尾追加下面代码:
export PATH=/opt/homebrew/bin:$PATH
安装
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
brew install mysql-server mysql-client
brew install libmysqlclient-dev python3-dev
网友评论