How do I install TensorFlow's tensorboard?

前端 未结 13 1564
慢半拍i
慢半拍i 2020-12-24 05:25

How do I install TensorFlow\'s tensorboard?

相关标签:
13条回答
  • 2020-12-24 05:28

    Adding this just for the sake of completeness of this question (some questions may get closed as duplicate of this one).

    I usually use user mode for pip ie. pip install --user even if instructions assume root mode. That way, my tensorboard installation was in ~/.local/bin/tensorboard, and it was not in my path (which shouldn't be ideal either). So I was not able to access it.

    In this case, running

    sudo ln -s ~/.local/bin/tensorboard /usr/bin
    

    should fix it.

    0 讨论(0)
  • 2020-12-24 05:29

    If you installed TensorFlow using pip, then the location of TensorBoard can be retrieved by issuing the command which tensorboard on the terminal. You can then edit the TensorBoard file, if necessary.

    0 讨论(0)
  • 2020-12-24 05:31

    If your Tensorflow install is located here:

    /usr/local/lib/python2.7/dist-packages/tensorflow
    

    then the python command to launch Tensorboard is:

    $ python /usr/local/lib/python2.7/dist-packages/tensorflow/tensorboard/tensorboard.py --logdir=/home/user/Documents/.../logdir
    

    The installation from pip allows you to use:

    $ tensorboard --logdir=/home/user/Documents/.../logdir
    
    0 讨论(0)
  • 2020-12-24 05:31

    you may have installed tensorflow to virtualenv. activate it and tensorboard command will become available.

    0 讨论(0)
  • 2020-12-24 05:32

    The steps to install Tensorflow are here: https://www.tensorflow.org/install/

    For example, on Linux for CPU-only (no GPU), you would type this command:

    pip install -U pip
    pip install tensorflow
    

    Since TensorFlow depends on TensorBoard, running the following command should not be necessary:

    pip install tensorboard
    
    0 讨论(0)
  • 2020-12-24 05:37

    TensorBoard isn't a separate component. TensorBoard comes packaged with TensorFlow.

    0 讨论(0)
提交回复
热议问题