When I run this:
protoc --python_out=. .\object_detection\protos\anchor_generator.proto
on a tensorflow object detection file on the command line, I get:
'protoc' is not recognized as an internal or external command, operable program or batch file.
I followed all instructions in protoc object_detection/protos/*.proto: No such file or directory, but they never worked for me
In addition to the searches I made, I tried this command:
py-3.6 -m pip install protobuf
and it works for me.
I typed the command again
python_out=. .\object_detection\protos\anchor_generator.proto
But it still fails and this:
C:\Users\laptop market\Downloads\bin\protoc object_detection/protos/*.proto --py_out=.
also fails.
You can get it by downloading the corresponding file for your system from https://github.com/google/protobuf/releases. (The corresponding file will be named something like protoc-*-.
protoc is a compiler for protocol buffers definitions files. It can can generate C++, Java and Python source code for the classes defined in PROTO_FILE.
The way I solved the issue on Windows 10 was to
My solution for windows:
protoc object_detection/protos/*.proto --python_out=.
I also encountered this error a while ago To go around this: Follow the steps listed below:
Install the protoc which is applicable for your operating system from this github repo for me it wasprotoc-3.13.0-win64.zip
Extract the zip file and put it in a folder where it will be permanently there
Go to the bin folder present in the protocFolder in my case I had to go to
F:\Programing_stuff\ML\protoc-3.17.3-win64\bin or just find where the protoc.exe
file is and copy the path
Then in the windows search bar type path
and click on Edit the system environment variables
And the path of the bin folder
Hope this helps, If doesn't check this video Or this website (If you want to install TensorFlow)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With