Skip to content

Instantly share code, notes, and snippets.

@EliasSalom
Last active June 7, 2022 11:14
Show Gist options
  • Save EliasSalom/f5a2847fede0f02661ff55404323d983 to your computer and use it in GitHub Desktop.
Save EliasSalom/f5a2847fede0f02661ff55404323d983 to your computer and use it in GitHub Desktop.
install grpc

install protobuf on mac (python)

you can to follow the link click here 1) brew install protobuf

pip install grpcio grpcio-tools

with python python3 -m grpc_tools.protoc -I protos --python_out=. --grpc_python_out=. ./ml_service.proto

or

python -m grpc_tools.protoc --proto_path=. --python_out=. --grpc_python_out=. *.proto

protoc -I=. --python_out=. --grpc_python_out=. *.proto

this is don't work on python 3.10 and upper so try to use 3.9.13

-I: defines the directory where we search for any dependencies (we use . which is the current directory) --python_out: defines the location we want to generate a Python integration class in (again we use . which is the current directory) The last unnamed parameter defines the .proto file that will be compiled (we use the todolist.proto file in the current directory)

read more about BloomRPC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment