If you have two versions of tensorboard installed in your system,you need to uninstall one of them.
I was stuck this for hours but I finally fixed it using:
Worked like a charm:
https://github.com/pytorch/pytorch/issues/22676
pip uninstall tb-nightly tensorboardX tensorboard
pip install tensorboard