After I installed tensorflow 1.3 ,tensorboard can be used in terminal
But after I installed tensorboard-pytorch, it can not work:
Traceback (most recent call last):
File "/usr/local/bin/tensorboard", line 7, in <module>
from tensorboard.main import main
ImportError: No module named 'tensorboard.main'
Which command triggered the error message?
I am using tensorboard-pytorch v0.7 from pip, TF v1.3 and it looks fine.
Please also provide the output of pip freeze, thanks.
I think the problem is that they moved Tensorboard to a dependency of TF 1.3 (https://pypi.python.org/pypi/tensorboard). "tensorflow-pytorch" and the original "tensorboard" both use the same name when using import. With both modules installed I get the following error:
from tensorboard import SummaryWriter
Traceback (most recent call last):File "
", line 1, in
from tensorboard import SummaryWriterImportError: cannot import name 'SummaryWriter'
@pnavarre The link you provided is not an official package. The official package comes with TF1.3 is https://pypi.python.org/pypi/tensorflow-tensorboard .
Sorry, my bad. I did install the official (tensorflow-tensorboad) and got the error above.
@pnavarre please post the output of pip freeze. BTW do you use anaconda environment or not?
@nsknsl , @pnavarre I just uploaded https://pypi.python.org/pypi/tensorboardX
from tensorboardX import SummaryWriter
This one should be fine :)
Thanks!
Most helpful comment
@nsknsl , @pnavarre I just uploaded https://pypi.python.org/pypi/tensorboardX
from tensorboardX import SummaryWriterThis one should be fine :)