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

报错:module ‘google.protobuf.internal.containers‘ has no attribute ‘MutableMapping‘,第1张

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

报错位置
from torch.utils.tensorboard import SummaryWriter

分析:
tensorboard包依赖于protobuf包,查看当前protobuf包版本:1.19.3

解决方案
安装旧版本pip install protobuf==1.10.0,运行查看pip show protobuf:

Name: protobuf
Version: 3.10.0
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author: None
Author-email: None
License: 3-Clause BSD License
Location: d:programdataanaconda3libsite-packages
Requires: six, setuptools
Required-by: tensorboard

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5711682.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存