Error
File "/root/xxx/xxx/xxx/xxx.py", line 6, in <module> from google.protobuf import descriptor as _descriptor File "/usr/lib/python2.7/site-packages/google/protobuf/descriptor.py", line 117 class DescriptorBase(metaclass=DescriptorMetaclass): ^ SyntaxError: invalid syntax
https://github.com/protocolbuffers/protobuf/issues/9045
解决
pip install protobuf==3.17.3