Protobuf编译问题 [英] Protobuf Compilation Issues

查看:228
本文介绍了Protobuf编译问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试运行TensorFlow库,为此,我必须编译Protobuf库.我正在使用以下命令:

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=.

出现以下错误:

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

可操作的程序或批处理文件.

operable program or batch file.

我不确定这是什么问题.我不在TensorFlow模型目录中运行它,但仍无法识别协议.

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.

推荐答案

您需要先安装协议缓冲库.

You need to install the Protocols buffer library first.

pip安装,如下所示:

pip install from your command line as shown below:

pip install protobuf

然后再次运行protoc命令

Then run your protoc command again

这篇关于Protobuf编译问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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