mac 上安装 mysqlclient 报错
Installing mysqlclient (2.2.0): Failed
背景
• Installing mysqlclient (2.2.0): Failed
exec(code, locals())
File "<string>", line 154, in <module>
File "<string>", line 48, in get_config_posix
File "<string>", line 27, in find_package_name
Exception: Can not find valid pkg-config name.
Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
解决方案
brew install mysql