Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tensorboard: command not found

I installed TensorFlow on my MacBook Pro 10.12.5 from source code by steps described here. https://www.tensorflow.org/install/install_sources

TensorFlow itself works well but I cannot run TensorBoard. It seems tensorboard is not installed properly.

When I try running tensorboard --logdir=... it says -bash: tensorboard: command not found. And locate tensorboard returns empty.

Do I need any additional step to install tensorboard?

like image 803
user3864315 Avatar asked Jul 14 '17 06:07

user3864315


People also ask

Is TensorBoard installed with TensorFlow?

TensorBoard comes packaged with TensorFlow. Show activity on this post. It may be helpful to make an alias for it.

Can you use TensorBoard without installing TensorFlow?

Databricks Runtime for Machine Learning includes TensorFlow and TensorBoard, so you can use these libraries without installing any packages.

What port does TensorBoard use?

where the -p 6006 is the default port of TensorBoard.

How do I start tensorboard?

Start TensorBoard through the command line or within a notebook experience. The two interfaces are generally the same. In notebooks, use the %tensorboard line magic. On the command line, run the same command without "%".

Why can’t I use tensorboard inside VS Code?

There are several known issues that you may encounter when trying to use TensorBoard inside VS Code. If your scenario is not covered below, please file a bug. You are using VS Code Jupyter notebooks via the Python and Jupyter extensions and You are using the TensorBoard nbextension to start TensorBoard inline in a Jupyter notebook and

How to run tensorboard in directory in Python 3?

2 Run this command: python3 -m tensorboard.main --logdir=logdir To run directory you can use, Change =logdir to ="dir/TensorFlow" (Directory path) Share Improve this answer Follow answered Jul 25 '20 at 6:49 shoaib21shoaib21 39055 silver badges99 bronze badges Add a comment | 0 Quickest solution -

Why is --inspect --logdir data not working with PyTorch tensorboard?

Unfortunately when running tensorboard --inspect --logdir data , nothing is found. You can check what is in the PyTorch Tensorboard documentation together with the installation instructions. If you use conda, try to install tensorboard outside conda. That helped me.


3 Answers

If no other methods work then try this one. It may help you.
1. check the location of Tensorflow

pip show tensorflow

It will show output something like this.
...
Name: tensorflow
Version: 1.4.0
Location: /home/abc/xy/.local/lib/python2.7/site-packages
...
2. Go to that location you get from the above output.

cd /home/abc/xy/.local/lib/python2.7/site-packages

There you can see a directory named tensorboard.

cd tensorboard

3. There must be a file named 'main.py'.
4. Execute the following command to launch the tensorboard.

python main.py --logdir=/path/to/log_file/
like image 198
Mufeed Avatar answered Oct 17 '22 21:10

Mufeed


You could call tensorboard as a python module like this:

python3 -m tensorboard.main --logdir=~/my/training/dir

or add this to your .profile

alias tensorboard='python3 -m tensorboard.main'

like image 45
DerekC Avatar answered Oct 17 '22 20:10

DerekC


If you installed Tensorflow with Virtualenv, then first Check whether you have activated the tensorflow envirnoment or not

If you have activated the tensorflow session then your command prompt will look like this :

tensorflow command prompt

If not, Write the below command and try running tensorboard again.

source ~/tensorflow/bin/activate

tensorboard running

like image 6
Deepak Kumar Avatar answered Oct 17 '22 20:10

Deepak Kumar