1、安装
可以使用的python 下载镜像网站 https://pypi.douban.com/simple
grpc 前安装的包
pip install grpcio
pip install grpcio-tools
2、protobuf
grpc可以使用protobuf进行数据处理,protobuf主流目前使用2、3,目前推荐用3,3修复了一些bug
protobuf3有自己专门的定义格式-门槛
syntax = “proto3”
message HelloRequest{
string name =1;
}
补充:
pycharm中安装protobuf support来支持pycharm中用proto