'tensorboard' is not recognized as an inte

2019-03-18 09:54发布

Just started using Tensorflow, but I am not able to use tensorboard command on my cmd, it gives the error command

C:\Users\tushar\PycharmProjects>tensorboard --logdir="NewTF"
'tensorboard' is not recognized as an internal or external command,
 operable program or batch file.

I am using window 10 and have installed tensorboard library/

5条回答
何必那么认真
2楼-- · 2019-03-18 10:31

Try the following:

C:\Users\tushar\PycharmProjects>python -m tensorflow.tensorboard --logdir="NewTF"

查看更多
贪生不怕死
3楼-- · 2019-03-18 10:33

If you're using Anaconda as your python environment, make sure to activate it before trying to open tensorboard.

Would look like this in your case:

C:\Users\tushar\PycharmProjects>conda activate YourCondaEnv && tensorboard --logdir="NewTF"
查看更多
The star\"
4楼-- · 2019-03-18 10:51

I also had the same sort of problem while running tensorboard from cmd, if your tensorflow installation was done using conda, then you can launch tensorboard from the Anaconda prompt as follows:

activate tensorflow
tensorboard --logdir=path to your log files
查看更多
贼婆χ
5楼-- · 2019-03-18 10:53

I had the same problem for tensorflow 1.5.0 and windows10.

Following tensor documentation ("Launching TensorBoard" section), you can try:

python -m tensorboard.main --logdir=[PATH_TO_LOGDIR]

Now tensorboard is working properly for me.

查看更多
看我几分像从前
6楼-- · 2019-03-18 10:54
  1. Open Anaconda prompt
  2. activate tensorflow environment e.g. activate Test1-Tensor

    enter image description here

  3. tensorboard --logdir=path to your log files, put entire path. e.g.

    enter image description here

查看更多
登录 后发表回答