我目前正在学习如何使用Tensorflow并遵循本教程。我创建了图表但无法查看它

时间:2018-02-06 16:38:38

标签: python tensorflow anaconda tensorboard

我按照指令运行命令" tensorbard --logdir。" Tensorboard图表页面上没有图表,我收到了这些错误

    Exception in thread Reloader:
Traceback (most recent call last):
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\site-packages\tensorboard\backend\application.py", line 350, in _reload_forever
    reload_multiplexer(multiplexer, path_to_run)
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\site-packages\tensorboard\backend\application.py", line 322, in reload_multiplexer
    multiplexer.AddRunsFromDirectory(path, name)
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\site-packages\tensorboard\backend\event_processing\plugin_event_multiplexer.py", line 175, in AddRunsFromDirectory
    for subdir in GetLogdirSubdirectories(path):
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\site-packages\tensorboard\backend\event_processing\plugin_event_multiplexer.py", line 445, in <genexpr>
    subdir
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\site-packages\tensorboard\backend\event_processing\io_wrapper.py", line 50, in ListRecursively
    for dir_path, _, filenames in tf.gfile.Walk(top):
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 518, in walk
    for subitem in walk(os.path.join(top, subdir), in_order):
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 518, in walk
    for subitem in walk(os.path.join(top, subdir), in_order):
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 518, in walk
    for subitem in walk(os.path.join(top, subdir), in_order):
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 499, in walk
    listing = list_directory(top)
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 478, in list_directory
    compat.as_bytes(dirname), status)
  File "c:\users\imkha\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 473, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.UnknownError: FindFirstFile failed for: C:\Users\imkha\AppData\Local\Application Data : Access is denied.
; Input/output error

我已尝试过页面上提供的调试步骤,但似乎无法正常工作。先感谢您。 (操作系统:Windows 10)

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,并且正如Rajat所建议的那样,我在管理员模式下使用了cmd

像魅力一样工作。