I have checked for multiple installations but that’s not the problem as there’s only one installed package that is tb-nightly version 1.15. And the problem seems quite strange as while I was checking the error today from command line the statement from torch.utils.tensorboard import SummaryWriter ran without any errors in the interpreter but on running the code file using python filename.py threw the same error. I couldn’t understand what’s happening so again tried using the interpreter and now, it too throws the same error. I don’t know why this is happening or why it worked for the first time.