Skip to content

Commit

Permalink
Merge pull request #3532 from sairina/readme-grpcio
Browse files Browse the repository at this point in the history
Fix for `grpcio` dependencies for Apple M1 computers in `readme`
  • Loading branch information
bjester authored Aug 12, 2022
2 parents 2576470 + a92b76b commit f2c2e52
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f2c2e52

Please sign in to comment.