【问题标题】:'protoc' is not recognized as an internal or external command, operable program or batch file'protoc' 不是内部或外部命令、可运行程序或批处理文件
【发布时间】:2020-02-09 14:54:12
【问题描述】:

当我为 Protobuf Compilation 通过 cmd 尝试此操作时

protoc object_detection/protos/*.proto --python_out=.

它告诉我

'protoc' is not recognized as an internal or external command, operable program or batch file.

如何解决这个问题?

【问题讨论】:

    标签: tensorflow machine-learning computer-vision artificial-intelligence protocol-buffers


    【解决方案1】:

    您可能遇到了与我相同的问题。 你在关注TensorFlow 2 Object Detection API tutorial吗?

    在某些时候,您会转到 protoc release pages 并查看下载,例如 “protobuf-all-3.17.0.zip”和“protoc-3.17.0-win64.zip”(差别很大)。确保你下载的是“protoc”而不是“protobuf-all”。

    确保您可以在提取的文件夹中找到“protoc.exe”。例如,在我的电脑中,我有:


    C:\Program Files\Google Protobuf\bin\protoc.exe


    “protoc.exe”是编译器。

    如果有人读到这里完全迷路了,看看你能不能找到你的 c++ 编译器。 对我来说是


    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe


    编译器名为“cl.exe”

    【讨论】:

      猜你喜欢
      • 2019-10-04
      • 1970-01-01
      • 2018-08-25
      • 2014-06-01
      • 2022-01-06
      • 2016-07-07
      • 2021-12-20
      • 2016-12-03
      • 2019-04-25
      相关资源
      最近更新 更多