首先安装setuptools:
windows:
========1.下载 ez_setup.py,安装setuptools
https://bitbucket.org/pypa/setuptools/raw/bootstrap-py24/ez_setup.pycmd: python ez_setup.py
2.下载protobuf-2.4.1.zip和protoc-2.4.1-win32.zip
https://code.google.com/p/protobuf/downloads/list3.分别解压后,把protoc.exe放到protobuf-2.4.1src下
4.进入到protobuf-2.4.1python,按照README.txt说明步骤来安装即可
cmd:
python setup.py test
python setup.py install