我正在尝试使用此命令 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/