mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-14 18:12:35 +08:00
docs: Improve portability of brew prefix (#667)
homebrew's prefix can vary - with this minor change, the pkgconfig path should work in more user environments.
This commit is contained in:
@ -59,7 +59,7 @@ If you don't want to install MySQL server, you can use mysql-client instead:
|
||||
```bash
|
||||
$ # Assume you are activating Python 3 venv
|
||||
$ brew install mysql-client pkg-config
|
||||
$ export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"
|
||||
$ export PKG_CONFIG_PATH="$(brew --prefix)/opt/mysql-client/lib/pkgconfig"
|
||||
$ pip install mysqlclient
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user