python is not recognized_'tensorboard' is not recognized as an internal or external command,

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/

I had the same problem for tensorflow 1.5.0 and windows10.

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

Now tensorboard is working properly for me.

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

Nagesh

Open Anaconda prompt

activate tensorflow environment e.g. activate Test1-Tensor

tensorboard --logdir=path to your log files,

put entire path. e.g.

Try the following:

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

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"

How to open launch TensorBoard with Anaconda Enviroment

First make sure that you are downloaded PACKAGE of tensorboard

1. Open Anaconda

2. Click on PLAY button , then you will see "Open Terminal" and click

3. Go to your main project directory (where you store logs directory)

4. Call following python script to launch TensorBoard

#EXAMPLE (python -m tensorboard.main --logdir=logs/)

python -m tensorboard.main --logdir='your log dir'

5. FINISH

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值