您的位置:首页 > 其它

Tensorboard命令未找到问题的解决

2017-10-15 09:07 447 查看

一、问题

用sudo pip install tf_nightly-1.head-cp27-none-linux_x86_64.whl命令安装tensorflow时,使用tensorboard命令出现未找到命令错误!

二、解决

到网上查找解决办法,一般都是说指定tensorboard.py的全路径来运行。在计算机中搜索发现在安装过程中,该版本未安装tensorboard,因此这个办法不行。

卸载重新安装,卸载sudo pip uninstall tf-nightly,重新安装sudo pip install tf_nightly-1.head-cp27-none-linux_x86_64.whl,仍然没有安装tensorboard。

下载1.3版本的tensorflow,到阿里源http://mirrors.aliyun.com/pypi/simple/tensorflow/ 下载tensorflow-1.3.0-cp27-cp27mu-manylinux1_x86_64.whl(国内pip源列表博客http://www.cnblogs.com/sunnydou/p/5801760.html

安装tensorflow,sudo pip install tensorflow-1.3.0-cp27-cp27mu-manylinux1_x86_64.whl,报错:tensorflow-1.3.0-cp27-cp27mu-manylinux1_x86_64.whl is not a supported wheel on this platform.

继续网上搜索,发现博客pip安装报错:is not a supported wheel on this platform,用python命令import pip, print pip.pep425tags.get_supported()查找自己pip支持的文件格式。

修改文件名为tensorflow-1.3.0-cp27-none-linux_x86_64.whl,重新安装,安装过程可以看见
Downloading/unpacking tensorflow-tensorboard>=0.1.0,<0.2.0 (from tensorflow==1.3.0)

Downloading tensorflow_tensorboard-0.1.8-py2-none-any.whl (1.6MB): 1.6MB downloaded
提示,最后提示
Successfully installed tensorflow tensorflow-tensorboard bleach markdown html5lib werkzeug


至此解决问题。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  tensorboar pip-instal
相关文章推荐