windows下安装google protocbuf

首先安装setuptools:

windows:
========

1.下载 ez_setup.py,安装setuptools
https://bitbucket.org/pypa/setuptools/raw/bootstrap-py24/ez_setup.py

cmd: python ez_setup.py

2.下载protobuf-2.4.1.zip和protoc-2.4.1-win32.zip
https://code.google.com/p/protobuf/downloads/list

3.分别解压后,把protoc.exe放到protobuf-2.4.1\src\下

4.进入到protobuf-2.4.1\python\,按照README.txt说明步骤来安装即可

cmd:

  python setup.py test

  python setup.py install

posted @ 2014-11-20 15:57  yejinru  阅读(830)  评论(0编辑  收藏  举报