相关:

 https://stackoverflow.com/questions/72441758/typeerror-descriptors-cannot-not-be-created-directly



解决方法(已验证):

pip install protobuf==3.19



第二种解决方法(未验证):

export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python