"模块"对象在 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 也可以运行?

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

最新更新