How to solve “AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key”?

前端 未结 4 1883
[愿得一人]
[愿得一人] 2020-12-15 02:49

I encountered it while executing from object_detection.utils import label_map_util in jupyter notebook. It is actually the tensorflow object detection tutorial

4条回答
  •  伪装坚强ぢ
    2020-12-15 03:45

    This is a solution which worked for me I'm not sure if it'll work for others.

    The protoc verion I got through pip show protobuf and protoc --version were different. The version in pip was a bit outdated after I upgraded the pip version the problem was solved.

    In order to upgrade it use pip install --upgrade protobuf

提交回复
热议问题