protoc object_detection/protos/*.proto:没有这样的文件或目录 [英] protoc object_detection/protos/*.proto: No such file or directory

查看:219
本文介绍了protoc object_detection/protos/*.proto:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此处中找到示例. 但是每当我输入命令"C:/Program Files/protoc/bin/protoc"时,object_detection/protos/ .proto --python_out =. 我收到一条错误消息,提示为object_detection/protos/ .proto:没有这样的文件或目录. 我无法创建名为* .proto的目录.因此,我缺少有关如何执行此操作的一些基本信息.由于找不到其他人抱怨此问题,因此它必须非常简单. 我正在使用Windows操作系统.

I am following the example found here. But whenever I enter the command "C:/Program Files/protoc/bin/protoc" object_detection/protos/.proto --python_out=. I get an error that says object_detection/protos/.proto: No such file or directory. I can't create a directory called *.proto. So I'm missing some fundamental information on how to do this. Since I can't find anyone else complaining about this issue it must be pretty simple. I am using a windows OS.

推荐答案

在Windows中已解决,请位于"研究"中,并在路径中包含"协议",然后这将起作用:

Solved for Windows, be in 'research' and have the 'protoc' in path, then this will work:

for /f %i in ('dir /b object_detection\protos\*.proto') do protoc object_detection\protos\%i --python_out=.

祝你好运!

这篇关于protoc object_detection/protos/*.proto:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆