ProtoBuff
ProtoBuff Install
download from https://github.com/google/protobuf/releases
now version is 2.6.1
windows

已经编译好了protoc放在protobuf-2.6.1/src目录下
然后如果要安装python环境的话,
cd python
python setup.py buildpython setup.py install
mac
需要自己编译protoc,不然报错提醒
protoc is not installed nor found in ../src. Please compile it or install the binary package.
cd protobuf-2.6.1
./configuremakemake checkmake install
protoc –version 测试
cd python
sudo python steup.pu buildsudo python steup.pu install
生成python文件
protoc --python_out=./ message.proto

浙公网安备 33010602011771号