ImportError: TensorBoard logging requires TensorBoard with Python summary writer installed. This sho

出错代码:
from torch.utils.tensorboard import SummaryWriter

报错文案:

ImportError: TensorBoard logging requires TensorBoard with Python summary writer installed. This should be available in 1.14 or above.

前两题急于用在windows10上用pytorch,随随便便装了个旧版本,这现在报应来了。告诉我,TensorBoard要在1.14 版本才可以用

用了一下这位童鞋的办法:
https://blog.csdn.net/wangweiwells/article/details/101565407
安装 TensorBoard ????
conda install tensorboard
试过了,不管用

好吧,我接受报应,重新安装吧:
pytorch稳定版各版本文件链接:
https://download.pytorch.org/whl/cpu/torch_stable.html

把链接复制下来,用 FDM下载或者用X雷下载

然后,用pip或者conda安装.whl文件


from torch.utils.tensorboard import SummaryWriter
还是不管用
参考了stackoverflow
https://stackoverflow.com/questions/58686400/can-not-get-pytorch-working-with-tensorboard
运行:
pip install tensorboard==1.14.0
之后就可以使用了


之后又报了一个小错:

ERROR: tensorflow 1.12.0 has requirement tensorboard<1.13.0,>=1.12.0, but you’ll have tensorboard 1.14.0 which is incompatible.

无所谓了,反正哥已经不用tf了,自从tf升级到2.0,我无力吐槽…

  • 4
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值