Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python PyTorch Error: ModuleNotFoundError: No module named 'torch.utils.tensorboard'

I'm coding in Python on a Jupyter Notebook (Python 3) on Windows, and I've installed PyTorch and TensorBoard. My problem is that i'm getting this error message:

ModuleNotFoundError: No module named 'torch.utils.tensorboard'

I've already tried to use pip install future but the error remains, how can I fix this?

Here's how I'm importing torch.utils.tensorboard

from torch.utils.tensorboard import SummaryWriter
like image 996
Guilherme Souza Avatar asked Oct 16 '19 12:10

Guilherme Souza


1 Answers

Use pip install tensorboard or pip3 install tensorboard OR pip install --upgrade tensorboard && pip install --upgrade torch

like image 62
Karandeepdps Avatar answered Sep 24 '22 03:09

Karandeepdps