可以在Debian Buster上安装当前版本的Tensorflow(1.8)吗?如果是这样,怎么办?

时间:2018-07-07 14:11:49

标签: python-3.x tensorflow debian

我尝试按照在Ubuntu(1)上安装Tensorflow的说明在Debian Buster上进行安装。说明说Virtualenv选项最简单,所以我选择了它。我没有使用GPU。我在引用的页面上执行了步骤1-4,但是步骤5(pip3 install --upgrade tensorflow)失败,并显示了几条消息,例如:

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/tensorflow/

其次:

Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow

说明说,如果失败,则应这样做:

pip3 install --upgrade https://storage.googleapis.com/tensorflow/linuxsorflow-1.8.0-cp36-cp36m-linux_x86_64.whl

这似乎找到了所需的一些东西,并生成了一些有关收集东西的消息,但最终它也失败了,并显示了类似的重试消息,其后是:

Could not find a version that satisfies the requirement werkzeug>=0.11.10 (from tensorboard<1.8.0->tensorflow==1.8.0) (from versions: )
No matching distribution found for werkzeug>=0.11.10 (from tensorboard<1.9.0,>=1.8.0->tensorflow

如果我只是重试,它通常会失败,并显示不同的消息,例如:

Could not find a version that satisfies the requirement html5lib==0.9999999 (from tensorboard<1.9.0,>=1.8.0->tensorflow) (from versions: )
No matching distribution found for html5lib==0.9999999 (from tensorboard<1.9.0,>=1.8.0->tensorflow)

或:

  Could not find a version that satisfies the requirement markdown>=2.6.8 (from tensorboard<1.9.0,>=1.8.0->tensorflow) (from versions: )
No matching distribution found for markdown>=2.6.8 (from tensorboard<1.9.0,>=1.8.0->tensorflow)

一个明显的替代方法是按照here所述从源代码安装,但是在最后一步,即

sudo pip3 install /tmp/tensorflow_pkg/tensorflow-1.9.0rc0-cp36-cp36m-linux_x86_64.whl

结果消息是

Processing /tmp/tensorflow_pkg/tensorflow-1.9.0rc0-cp36-cp36m-linux_x86_64.whl
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3/dist-packages (from tensorflow==1.9.0rc0)
Collecting gast>=0.2.0 (from tensorflow==1.9.0rc0)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/gast/

然后重试

  Could not find a version that satisfies the requirement gast>=0.2.0 (from tensorflow==1.9.0rc0) (from versions: )
No matching distribution found for gast>=0.2.0 (from tensorflow==1.9.0rc0)

0 个答案:

没有答案