欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

python配置grpc環(huán)境

 更新時(shí)間:2019年01月01日 10:10:36   作者:wz669  
gRPC 是一款高性能、開(kāi)源的 RPC 框架,產(chǎn)自 Google,基于 ProtoBuf 序列化協(xié)議進(jìn)行開(kāi)發(fā),支持多種語(yǔ)言(Golang、Python、Java等),本篇只介紹 Python 的 gRPC 安裝使用

gRPC 的安裝:

$ pip install grpcio

安裝 ProtoBuf 相關(guān)的 python 依賴(lài)庫(kù):

$ pip install protobuf

安裝 python grpc 的 protobuf 編譯工具:

$ pip install grpcio-tools

測(cè)試

//源碼路徑 https://github.com/grpc/grpc
git clone https://github.com/grpc/grpc
cd grpc/examples/python/helloworld
python greeter_server.py //一個(gè)常駐服務(wù)

//啟動(dòng)客戶端訪問(wèn)server
python greeter_client.py
//打印Greeter client received: Hello, you! 即為可以使用

相關(guān)文章

最新評(píng)論