tensorboard执行时报错

报错:

ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['G:\\Anaconda3\\lib\\site-packages\\numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.

实际上和numpy没有关系 

解决方案:

先activate tensorflow环境,再执行tensorboard --logdir=路径名

结果依然报错,因为没有对应的版本的tensorboard

File "G:\Anaconda3\envs\tfenv\Scripts\tensorboard-script.py", line 3, in <module>
    import tensorflow.tensorboard.tensorboard
ImportError: No module named 'tensorflow.tensorboard'

最后解决方案:pip install tensorflow.tensorboard

tensorboard执行时报错

 

然后再运行:

tensorboard执行时报错

成功啦!