go - --go_out : protoc-gen-go: The system cannot find the file specified Windows 10

标签 go grpc

我正在尝试使用此命令 protoc greet\greetpb\greet.proto --go_out=plugins=grpc:。我收到了消息

"--go_out: protoc-gen-go: The system cannot find the file specified."

我的协议(protocol)版本是 libprotoc 3.6.1 我的go版本go版本go1.11.2 windows/386 我的包列表中还有这个 github.com/golang/protobuf/protoc-gen-go/grpc

我是 golang 的新手,我正在尝试学习 grpc。 有人可以帮我解决这个问题吗?我正在使用 Windows 10。

最佳答案

我可以通过修改环境变量 PATH 来解决这个问题。我添加 %GOPATH%/bin 并且该命令有效。

关于go - --go_out : protoc-gen-go: The system cannot find the file specified Windows 10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53572260/

相关文章:

grpc - 带有 GRPC 服务器流的 Envoy 代理抛出 UNAVAILABLE : upstream request timeout

encryption - 如何在没有证书的情况下加密 gRPC 连接?

java - ClientCallStreamObserver isReady 永远不会返回 true

string - 如何检查文本是否包含Golang列表中的任何单词?

authentication - gRPC中如何使用Oauth2进行用户认证

javascript - 从 Angular js 中的 Go 模板获取数据

javascript - 如何为grpc(node.js)编写中间件

go - FieldA.Eq 未定义(类型 cqlc.BooleanColumn 没有字段或方法 Eq)

function - 无法打印完整的字符串数组

c++ - 从 GRPC c++ 服务器实现返回 'not found' 响应的正确方法是什么?