File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -48,16 +48,16 @@ $ pip install mysqlclient
4848
4949Install MySQL and mysqlclient:
5050
51- ```
52- # Assume you are activating Python 3 venv
51+ ``` bash
52+ $ # Assume you are activating Python 3 venv
5353$ brew install mysql pkg-config
5454$ pip install mysqlclient
5555```
5656
5757If you don't want to install MySQL server, you can use mysql-client instead:
5858
59- ```
60- # Assume you are activating Python 3 venv
59+ ``` bash
60+ $ # Assume you are activating Python 3 venv
6161$ brew install mysql-client pkg-config
6262$ export PKG_CONFIG_PATH=" /opt/homebrew/opt/mysql-client/lib/pkgconfig"
6363$ pip install mysqlclient
@@ -88,7 +88,7 @@ compiler/linker flags.
8888You can use ` MYSQLCLIENT_CFLAGS ` and ` MYSQLCLIENT_LDFLAGS ` environment
8989variables to customize compiler/linker options.
9090
91- ```
91+ ``` bash
9292$ export MYSQLCLIENT_CFLAGS=` pkg-config mysqlclient --cflags`
9393$ export MYSQLCLIENT_LDFLAGS=` pkg-config mysqlclient --libs`
9494$ pip install mysqlclient
You can’t perform that action at this time.
0 commit comments