你可能遇到 from google.protobuf import descriptor 这样的错误

1、这个工具依赖 Python 的 protobuf 生成

2、protobuf 的源代码根目录下有 Python 的目录

3、运行前先编译 protoc 在 src 目录下,或者将之前编译好的拷贝过来也可以

4、转到 protobuf/python 目录下,先运行 python setup build 再运行 python setup install

5、这样在再运行 make_proto 就可以了,生成文件在 Lua/protol 下

 

相关文章:

  • 2021-10-02
  • 2021-12-24
  • 2021-12-21
  • 2021-12-13
  • 2022-01-12
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2021-12-02
  • 2022-01-16
  • 2021-05-29
相关资源
相似解决方案