jiansoung / issues-list

记录日常学习和开发遇到的问题。欢迎评论交流:)
https://github.com/jiansoung/issues-list/issues
MIT License
14 stars 0 forks source link

How to install mysqlclient on macOS (Homebrew) with MariaDB for Python ? #28

Open jiansoung opened 10 months ago

jiansoung commented 10 months ago
# Assume you are activating Python 3 venv
$ brew install mariadb pkg-config mysql-client

# For pkg-config to find mysql-client you may need to set PKG_CONFIG_PATH.
# This path can be found when you brew install mysql-client, replace below with yours.
$ export PKG_CONFIG_PATH="/usr/local/opt/mysql-client/lib/pkgconfig"

$ pip install mysqlclient

References