安装准备:python和protoc(编译proto到各个语言)

下载protobuf源代码(各种语言实现):https://github.com/google/protobuf 

1、到Python目录,编译 
python setup.py build 
python setup.py install 
python setup.py test

2、验证安装是否成功

  #python 
  >>>import google.protobuf 

如果报错,检查错误。如果是protoc没找到,可以到./src下编译出protoc,或者直接下载protoc-3.2.0-win32 release版(https://github.com/google/protobuf/releases),把protoc被放到./src. 

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2021-12-05
  • 2021-07-17
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2022-12-23
  • 2021-10-16
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案