Thanks for your answer. I had tensorboard installed. However, what I did was
pip uninstall tensorflow
pip uninstall tensorboard

I deactivated my virtualenv, reactivated it
pip install tensorflow
pip install tensorboard

And now it is working fine