【问题标题】:'module' object has no attribute 'MutableMapping' issue in Caffe“模块”对象在 Caffe 中没有属性“MutableMapping”问题
【发布时间】:2019-02-11 06:19:52
【问题描述】:

我的 Caffe 运行良好,但后来我安装了 Keras,但出现以下错误:

'module' object has no attribute 'MutableMapping'

根据一些建议,我按照这些从源代码构建的说明更新了 Protobuf。 https://github.com/protocolbuffers/protobuf/blob/master/src/README.md

现在的结果是 Keras 和 Caffe 都没有运行,我得到了同样的错误:

File "/home/myuser/anaconda2/lib/python2.7/site-packages/google/protobuf/descriptor.py", line 50, in <module>
from google.protobuf.pyext import _message
AttributeError: 'module' object has no attribute 'MutableMapping'

在所有的事情中,我可能会首先尝试卸载新版本的 Protobuf,但我应该怎么做才能回到以前的状态?其次,如何安装 Protobuf 让 Keras 也能运行?

【问题讨论】:

    标签: protocol-buffers caffe


    【解决方案1】:

    问题似乎是同时安装了两个 protobuf。

    【讨论】:

      猜你喜欢
      • 2016-03-20
      • 2022-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-29
      • 2017-08-18
      • 2017-05-13
      相关资源
      最近更新 更多