离线安装时找不到tensorboard

时间:2018-08-21 07:39:10

标签: python tensorflow

我通过sudo -H pip install tensorboard-1.9.0-py2-none-any.whl安装了tensorboard 1.9.0

并使用pip list可以看到它:

>> pip list| grep tensorboard
tensorboard       1.9.0

但是当我尝试安装tensorflow

sudo -H pip install tensorflow-1.8.0-cp27-cp27mu-manylinux1_x86_64.whl

它变成了收集张量板:

Collecting tensorboard<1.9.0,>=1.8.0 (from tensorflow==1.8.0)
Could not find a version that satisfies the requirement 
tensorboard<1.9.0,>=1.8.0 (from tensorflow==1.8.0) (from versions: 1.0.0a3, 
1.0.0a4, 1.0.0a5, 1.0.0a6)
No matching distribution found for tensorboard<1.9.0,>=1.8.0 (from 
tensorflow==1.8.0)

我想知道为什么会发生这种情况以及如何离线安装tensorflow?

1 个答案:

答案 0 :(得分:2)

您安装了错误的tensorboard版本。您安装了版本1.9.0。但是在安装tensorflow时,它会寻找tensorboard<1.9.0,>=1.8.0不满意的1.9.0

下载并安装tensorboard 1.8,它应该可以工作