Mac 安装mysqlclient报错,OSError: mysql_config not found 的解决方法

Lan
Lan
2022-11-01 / 0 评论 / 310 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2022年11月01日,已超过535天没有更新,若内容或图片失效,请留言反馈。
raise EnvironmentError("%s not found" % (mysql_config.path,))

OSError: mysql_config not found

先安装brew(如果没有)

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

安装mysql-connector-c

brew install mysql-connector-c

添加到PATH

根据提示,添加到你的PATH

0

评论 (0)

取消