Protobuf Compilation Issues

2019-07-21 20:49发布

问题:

I've been trying to run a TensorFlow library and in order to do that I have to compile Protobuf libraries. I'm using the following command:

C:\tensorflow-master\tensorflow\models>protoc object_detection/protos/*.proto --python_out=.

The following error comes up:

'protoc' is not recognized as an internal or external command,

operable program or batch file.

I'm not sure what the issue is here. I'm running it out of the TensorFlow models directory, but it's still not recognizing protoc.

回答1:

You need to install the Protocols buffer library first.

pip install from your command line as shown below:

pip install protobuf

Then run your protoc command again