【问题标题】:Cannot install tflearn in python 3无法在 python 3 中安装 tflearn
【发布时间】:2017-11-14 01:53:28
【问题描述】:

我有适用于 python 3 的 tensorflow 1.11.9,并且正在尝试安装 tflearn。

我尝试使用以下方式安装:

  1. "pip3 安装 git+https://github.com/tflearn/tflearn.git"
  2. “pip3 安装 tflearn”
  3. "pip install git+https://github.com/tflearn/tflearn.git"
  4. "pip install git+https://github.com/tflearn/tflearn.git"

似乎没有任何效果。 pip install 正在为 python 2 安装 tflearn 版本(我在 Ubuntu 14.04 上有 python2.7 和 3.4),而 pip3 声称安装成功,但我收到一条错误消息

“没有名为‘tensorflow.contrib.rnn.python.ops.core_rnn’的模块”。

谁能建议我做错了什么?我很乐意提供任何可能需要的进一步信息。提前致谢。

【问题讨论】:

    标签: python git tensorflow pip tflearn


    【解决方案1】:

    我认为您的 tensorflow 版本可能有点低。当前是 1.4

    【讨论】:

    • 我发现我正在使用“sudo pip3 install --upgrade tfBinaryURL”安装 tensorflow,其中 tfBinaryURL 标识了 TensorFlow Python 包的正确 URL。使用“pip3 install tensorflow”安装 tensorflow,然后使用“pip3 install git+github.com/tflearn/tflearn.git”安装 tflearn 解决了我的问题。但是,我收到另一个警告说“TensorFlow 库未编译为使用 SSE4.1、SSE4.2 指令,但这些指令在您的机器上可用并且可以加快 CPU 计算速度”。你能给我发个 tf 1.4 的链接吗?
    【解决方案2】:

    我发现我正在使用

    安装 tensorflow

    sudo pip3 install --upgrade tfBinaryURL,

    其中,tfBinaryURL 标识 TensorFlow Python 包的正确 URL。使用

    进行 tensorflow 安装

    pip3 安装张量流

    然后使用

    安装 tflearn

    pip3 安装 git+github.com/tflearn/tflearn.git

    解决了我的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-23
      • 2017-06-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多