当前位置: 代码迷 >> 综合 >> avod报错:AttributeError: module ‘google.protobuf.internal.containers‘ has no attribute ‘MutableMapping
  详细解决方案

avod报错:AttributeError: module ‘google.protobuf.internal.containers‘ has no attribute ‘MutableMapping

热度:40   发布时间:2023-12-16 03:32:22.0

报错;AttributeError: module ‘google.protobuf.internal.containers’ has no attribute ‘MutableMapping’

解决方案:
版本不一致

(avod) [root@localhost avod]# protoc --version
libprotoc 3.3.0(avod) [root@localhost avod]# pip show protobuf
Name: protobuf
Version: 3.19.1
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author: None
Author-email: None
License: 3-Clause BSD License
Location: /data/dataset1/softwares/Anaconda_installfold/envs/avod/lib/python3.5/site-packages

那么,只要使得二者版本一致即可
(avod) [root@localhost avod]# pip install protobuf==3.3.0

再次运行,ok了

  相关解决方案