Tom*_*Tom 3 protocol-buffers python-2.7
我目前正在尝试在 Windows 上为 python 安装 google protocol buffer 的版本 3。
我已通过命令行进入 python 文件夹,并尝试使用:
python setup.py build
但是我收到以下错误:
python : protoc is not installed nor found in ../src. Please compile it or install the binary package.
这里发生了什么?
正如错误所示,您必须首先安装protoc.exe. 您可以从每个 Protobuf 版本附带的 Win32 软件包中获取它。最新版本在这里:
https://github.com/google/protobuf/releases/download/v3.0.0-alpha-3/protoc-3.0.0-alpha-3-win32.zip
(您还可以protoc通过下载 C++ 源代码版本从源代码构建。)