Proto Compilation Error - No such file or directory

青春壹個敷衍的年華 提交于 2020-06-13 11:16:51

问题


I am trying to compile Protoc library but It just keeps giving me the error of No Such Directory even though it is there

I am following Google's Photobuf compilation steps I have added Protoc to PATH environment variable as well.

But it simply won't see the object_detection/protos directory

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

The directory and the files are clearly there


回答1:


Same issue with you.
I have been installed protoc with anaconda3,but it is useless.

This is my solution:
Head to the protoc releases page and download the protoc-3.4.0-win32.zip, extract it, and you will find protoc.exe in the bin directory.

Move this to models/research folder tensorflow model project

Next,you can use the protoc command like

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

Reference linking




回答2:


I was running into the same problem using the latest protoc version for windows: 3.5.0. On a whim I tried using the slightly older version (3.4.0) and got it to work using the exact same instructions.




回答3:


Use 3.4.0 version and run from object_detectionprotoc object_detection/protos/*.proto --python_out=.



来源:https://stackoverflow.com/questions/47620577/proto-compilation-error-no-such-file-or-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!