【发布时间】: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 也能运行?
【问题讨论】: