tensorboard命令报错:tensorboard.util has no attribute Retriev

只在程序中定义了一个命名空间:
#定义两个placeholder
with tf.name_scope(‘input’): #input
x = tf.placeholder(tf.float32,[None,784],name=‘x-input’)
y = tf.placeholder(tf.float32,[None,10],name=‘y-input’)

with tf.Session() as sess:
sess.run(init)
writer=tf.summary.FileWriter(‘logs/’,sess.graph)
for epoch in range(10):
for batch in range(n_batch):
batch_xs,batch_ys = mnist.train.next_batch(batch_size)
sess.run(train_step,feed_dict={x:batch_xs,y:batch_ys})

  然后在cmd中运行命令:
  tensorboard --logdir=logs
  报错:tensorboard.util has no attribute ‘Retriev’

搜了一圈,定位为版本问题。
当前版本是1.13
而我的tensorflow版本是1.5
所以pip uninstall tensorboard
然后重新安装:pip uninstall tensorboard==1.5.0
结果说没有找到版本,但是推荐1.6.0 … 1.13.0
我选了最古老的版本:
pip uninstall tensorboard= =1.6.0i

重新运行命令,结果继续报错:
cannot remove entries from nonexistent file anaconda3 lib site-packages easy-install.pth

继续奔溃,应该是setuptool的版本问题,试了一下网上解决办法:
pip install --upgrade --ignore-installed setuptools

终于成功了。在chrome中输入地址:
http://**-pc:6006/
成功~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值