【问题标题】:pip installation error for tensorflowtensorflow的pip安装错误
【发布时间】:2017-12-30 19:36:19
【问题描述】:

我试图在 ubuntu 14.04、python 2.7 上从源代码安装 tensorflow。 我按照“tensorflow.org”中的步骤进行源代码安装。 我已经完成了所有步骤,例如 bazel 安装,python 依赖项安装。 在 sudo pip 安装的最后一步;命令如下:-

$sudo pip install /tmp/tensorflow_pkg/tensorflow-1.3.0rc0-cp27-none-linux_x86_64.whl

但我收到如下错误:

Unpacking /tmp/tensorflow_pkg/tensorflow-1.3.0rc0-cp27-none-linux_x86_64.whl
Downloading/unpacking tensorflow-tensorboard (from tensorflow==1.3.0rc0)
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement tensorflow-tensorboard (from tensorflow==1.3.0rc0)
Cleaning up...
No distributions at all found for tensorflow-tensorboard (from tensorflow==1.3.0rc0)
Storing debug log for failure in /home/ubuntu/.pip/pip.log

我还检查了 tensorflow_pkg 轮:但上面的包在那里不可用。 所以可以使用 pip 安装不同的 .whl,例如 -tensorflow-1.2.1-cp27-none-linux_x86_64.whl 已下载到我的桌​​面。

请告诉我如何解决这个问题。

感谢和问候

【问题讨论】:

    标签: python-2.7 ubuntu tensorflow


    【解决方案1】:

    试试:

    pip install tensorflow
    

    如果这不起作用:

    sudo pip  install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.1-cp27-none-linux_x86_64.whl
    

    More info here 和 Common problems here。

    【讨论】:

      【解决方案2】:

      我的问题已通过以下步骤解决。

      我使用更新了点子 还导出了代理设置。 例如导出 https_proxy=...

      这能够解决我的问题。

      我还尝试为 tensorflow 安装其他 .whl 文件,是的,也可以使用下载的 .whl 文件安装 tensorflow。

      谢谢

      【讨论】:

        【解决方案3】:

        我没有找出问题的根源,但为了它的价值,我通过安装旧版本跳过了 tensorboard 问题(1.2.0 对我有用)

        pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.0-cp27-none-linux_x86_64.whl
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2020-06-29
          • 2020-09-22
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多