gRPC 的安装:$ pip install grpcio安装 ProtoBuf 相关的 python 依赖库:$ pip install protobuf安装 python grpc 的 protobuf 编译工具:$ pip install grpcio-tools

测试

//源码路径 https://github.com/grpc/grpcgit clone https://github.com/grpc/grpccd grpc/examples/python/helloworldpython greeter_server.py //一个常驻服务//启动客户端访问serverpython greeter_client.py//打印Greeter client received: Hello, you! 即为可以使用