windows下怎么安装protobuf for python

首先从google上下载protobuf-3.0.0.zip和protoc-3.0.0-win32.zip,然后把protoc-3.0.0-win32.zip里的protoc.exe放到protobuf-3.0.0src下。
下载地址:https://github.com/google/protobuf/releases/tag/v3.0.0
image
切换到protobuf-3.0.0python
执行指令 python setup.py build, python setup.py test, python setup.py install
 
原文地址:https://www.cnblogs.com/linkxu1989/p/6694081.html