我正在尝试安装tensorflow用于使用anaconda和python进行对象检测,并且我需要使用protoc来做一些事情,但在尝试运行命令protoc \object_detection/protos/*.proto --python_out=.
时不断收到错误,但我一直收到错误
protoc The term protoc is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ protoc \object_detection/protos/*.proto --python_out=.
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (protoc:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command protoc was not found, but does exist in the current location.
Windows PowerShell does not load commands from the current location by default. If you trust this command,
instead type: .\protoc. See "get-help about_Command_Precedence" for more details.
我试过像蟒蛇建议的那样使用‘ '.\protoc’,但仍然没有结果,有人知道它为什么这样做吗?我有最新版本的anacond usinf python 3.7和protoc 3.14
发布于 2021-11-12 04:51:14
需要安装protobuf go pkg,请参阅下面的链接:https://developers.google.com/protocol-buffers/docs/gotutorial
https://stackoverflow.com/questions/66178456
复制相似问题