这里写自定义目录标题
在更新完conda和所有包以后,我导入tensorflow出现以下错误:
AttributeError: module ‘google.protobuf.internal.containers’ has no attribute ‘MutableMapping’
求助网络大佬,发现可能是版本不一致导致的问题,解决办法详见:
https://blog.csdn.net/qq_38335768/article/details/121283297
但我查了自己的版本都是一致的
于是又在GitHub上找到解决方案,详见:
https://github.com/protocolbuffers/protobuf/issues/9409
主要就是在本地文件’C:/Users/user/anaconda3/Lib/site-packages/google/protobuf/internal/container.py’中添加一行代码:
from collections.abc import MutableMapping
于是成功!!