tensorflow: ModuleNotFoundError: No module named 'tensorflow.tensorboard.tensorboard'
Tensorboard not working on Tensorflow built from sources
System information
- Linux Ubuntu 16.04
- TensorFlow installed from sources using Bazel
- TensorFlow version v1.2.0-1126-gb7acb6a
- Bazel version 0.51
- CUDA/cuDNN version 8.0/6.0
- Found device 0 with properties: name: GeForce GTX 1070 major: 6 minor: 1 memoryClockRate (GHz) 1.683 pciBusID 0000:01:00.0 Total memory: 7.92GiB Free memory: 5.15GiB
- Exact command to reproduce:
$ tensorboardInstalled into fresh anaconda3 environment ‘tensorflow’, environment is activated when performing command.
Description: The TensorBoard visualization doesn’t work
Source code / logs
$ tensorboard
Traceback (most recent call last):
File "/home/gpu/anaconda3/envs/tensorflow/bin/tensorboard", line 7, in <module>
from tensorflow.tensorboard.tensorboard import main
ModuleNotFoundError: No module named 'tensorflow.tensorboard.tensorboard'
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (4 by maintainers)
For anybody else finding this issue, since tensorboard was split out from tensorflow the command to run is just
tensorboard --logdir=$MODEL_DIRinstead ofpython -m tensorflow.tensorboard --logdir=$MODEL_DIRas it was previously.Thanks @jcomfort4. After Cloud SDK update 171.0.0 I had the same issue. Solved with
tensorboard --logdir=outputas replacement for:python -m tensorflow.tensorboard --logdir=outputPlease update: https://cloud.google.com/ml-engine/docs/how-tos/getting-started-training-predictionWindows users might want to check out these two batch lines: