From a92b76beeae97de6c79801533aedc9dd4924b0eb Mon Sep 17 00:00:00 2001 From: sairina Date: Fri, 12 Aug 2022 11:57:52 -0700 Subject: [PATCH] Add fix for grpcio dependencies for Apple M1 computers in readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 86f87b3d46..fd52632f2b 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,15 @@ pip install -r requirements-dev.txt # Set up pre-commit hooks pre-commit install ``` +#### A note about dependencies on Apple Silicon M1 +If you run into an error with `pip install` related to the `grcpio` package, it is because it currently [does not support M1 with the version for `grcpio` Studio uses](https://github.com/grpc/grpc/issues/25082). In order to fix it, you will need to add the following environmental variables before running `pip install`: + +``` +export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 +export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 +export CFLAGS="-I/opt/homebrew/opt/openssl/include" +export LDFLAGS="-L/opt/homebrew/opt/openssl/lib" +``` #### Adding or updating dependencies