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,我无力吐槽…

你可能感兴趣的:(pytorch)