简体   繁体   English

问题:tensorboard:找不到命令

[英]Issues: tensorboard: command not found

My environment: 我的环境:

$ pip show tensorflow
Name: tensorflow
Version: 1.4.1
Summary: TensorFlow helps the tensors flow
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: /home/pc/.local/lib/python2.7/site-packages
Requires: tensorflow-tensorboard, mock, enum34, protobuf, wheel, backports.weakref, six, numpy

When I trying to run tensorboard there are no founds in terminal. 当我尝试运行tensorboard时 ,在终端中找不到任何内容。

I'm not sure what OS you're on, but I'm on Ubuntu 17.10. 我不确定您使用的是什么操作系统,但是我使用的是Ubuntu 17.10。

Installing tensorflow also installs an executable version of tensorboard in ~/.local/bin . 安装tensorflow还会在~/.local/bin安装tensorboard的可执行版本。 But in order to execute this file by calling it from the command line, there needs to be a symbolic link to the executable inside the directory /usr/bin . 但是,为了通过从命令行调用该文件来执行该文件,需要在/usr/bin目录中存在指向可执行文件的符号链接。 For some reason, installing tensorflow doesn't do it for you automatically. 由于某种原因,安装tensorflow不会自动为您完成。

I solved the issue by manually creating the symlink with this command: 我通过使用以下命令手动创建符号链接来解决此问题:

sudo ln -s ~/.local/bin/tensorboard /usr/bin

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM