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?
TensorBoard comes packaged with TensorFlow. Show activity on this post. It may be helpful to make an alias for it.
Databricks Runtime for Machine Learning includes TensorFlow and TensorBoard, so you can use these libraries without installing any packages.
where the -p 6006 is the default port of 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 "%".
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
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 -
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.
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/
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'
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 :
If not, Write the below command and try running tensorboard again.
source ~/tensorflow/bin/activate
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With