再见。发展需要gRPC。proto文件本身是编写的,需要针对python进行编译。这里有问题,因为我不能编译。 我就是这么做的。 使用git,我下载了最新的protobuf(3.9.0)。然后我采取了这样的步骤:
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
sudo protoc -I=/home/vlad/protobuf-3.9.0 --python_out=/home/vlad/protobuf-3.9.0/ /home/vlad/protobuf-3.9.0/grpc-adpt.proto
总之,只有文件出现了*pb2.py 和grpc-原型机:3:1在控制台中出错:警告:Import google/protobuf/包装器.proto但没用过。 相应的bp2_grpc.py公司未创建 也和自述中写的一样
^{pr2}$进一步
sudo protoc -I=/home/vlad/protobuf-3.9.0 --python_out=/home/vlad/protobuf-3.9.0/ /home/vlad/protobuf-3.9.0/grpc-adpt.proto
同样的错误 grpc公司-原型机:3:1:警告:导入google/protobuf/包装器.proto但没用过。 起始代码
syntax = "proto3";
import "google/protobuf/wrappers.proto";
import "google/protobuf/empty.proto";``
目前没有回答
相关问题 更多 >
编程相关推荐