protoc 在 Windows 7 中找不到文件 [英] protoc cannot find files in windows 7
问题描述
我正在尝试运行我在 Tensorflow github 上找到的对象检测高级 API.步骤之一是像这样编译模块:
I'm trying to run the Object Detection high level API I found on Tensorflow github. One of the steps is to compile the module like this:
protoc object_detection\protos\*.proto --python_out=.
当我这样做时,我收到了这条消息:
When I do that I get this message:
object_detection\protos\*.proto: No such file or directory
有什么想法吗?我运行的是 Windows 7
Any idea? I'm running Windows 7
如果我运行:
protoc --python_out=. *.proto
从正确的文件夹中,我得到:
from the right folder, I get:
*.proto: No such file or directory
推荐答案
Windows 7 cmd 不接受通配符 (*).这样,*.proto 不匹配,因为您没有名为 *.proto
的文件.
Windows 7 cmd doesn't accept wildcard (*). This way, the *.proto doesn't match, because you don't have a file named *.proto
.
如果你想应用protoc --python_out=.文件路径
,您必须使用 for
循环或手动为所有文件单独发出 protoc
.
If you want to apply protoc --python_out=. filepath
, you have to use a for
loop or issue the protoc
manually for all files individually.
这篇关于protoc 在 Windows 7 中找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!