【问题标题】:Tensorflow on Ubuntu 16.04 Not InstallingUbuntu 16.04 上的 Tensorflow 未安装
【发布时间】:2018-04-03 20:24:46
【问题描述】:

我正在尝试在 Ubuntu 16.04 和 Python 3.6 (Anaconda) 上使用 Virtualenv 安装 Tensorflow 的 GPU 版本,但它一直输出这些错误

tensorflow-gpu 1.7.0 requires numpy>=1.13.3, which is not installed.
tensorflow-gpu 1.7.0 requires six>=1.10.0, which is not installed.
tensorboard 1.7.0 requires numpy>=1.12.0, which is not installed.
tensorboard 1.7.0 requires six>=1.10.0, which is not installed.
tensorboard 1.7.0 requires werkzeug>=0.11.10, which is not installed.
protobuf 3.5.2.post1 requires six>=1.9, which is not installed.
html5lib 0.9999999 requires six, which is not installed.
grpcio 1.10.0 requires six>=1.5.2, which is not installed.
bleach 1.5.0 requires six, which is not installed.
absl-py 0.1.13 requires six, which is not installed.

我已经尝试在 virtualenv 和外部都使用sudo pip install numpy six 安装 numpy 和 6,但错误仍然存​​在。有关如何解决此问题的任何想法?

【问题讨论】:

  • 你确定你使用的是正确的pip吗?它可能会将它们安装在 Python 2 而不是 Python 3 上,试试pip3
  • @quartata pip --version 输出它正在运行 Python 3.6,但它确实声明它是 virtualenv 中 pip 的旧版本。当我尝试运行pip install --upgrade pip 时,出现与上面相同的错误。

标签: tensorflow pip ubuntu-16.04


【解决方案1】:

您同时使用 conda 和 virtualenv,这通常是个坏主意。如果您从 anaconda 安装 Python,请使用他们的环境工具。

conda create -n tensorflow pip python=3.6

source activate tensorflow

pip install --ignore-installed --upgrade\
    https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.6.0-cp36-cp36m-linux_x86_64.whl

另外,看看如何install tensorflow with anaconda

【讨论】:

  • 我猜就是这样。使用该方法效果很好,。谢谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-09-22
  • 2017-04-12
  • 2018-01-06
  • 1970-01-01
相关资源
最近更新 更多