【问题标题】:Why am I not able to import TFLearn?为什么我无法导入 TFLearn?
【发布时间】:2020-05-28 14:27:54
【问题描述】:

我正在尝试用这个简单的代码导入 TFLearn:

import tflearn

但我收到以下错误:

AttributeError: module 'tensorflow.python.framework.ops' has no attribute 'RegisterShape'

我已经安装了以下版本的程序:

Python 3.7.6 64 位 张量流 2.1.0 TFlearn 0.3.2

【问题讨论】:

    标签: python tensorflow2.0 tflearn


    【解决方案1】:

    这个问题在这里得到解答: AttributeError: module 'tensorflow.python.framework.ops' has no attribute 'RegisterShape'

    也许你可以在那里找到帮助。

    【讨论】:

    • 谢谢 Harishankar,我已经阅读了这个问题的答案。但似乎他们正在尝试创建一个操作。仅仅通过尝试导入包就会发生这种情况是否正常?
    • tflearn 包从 2019 年 1 月 10 日起没有收到任何更新,tensorflow 包经常收到更新。可能tflearn的开发者没有跟上tensorflow的开发。而且我认为tflearn 不适合使用,考虑到这种情况。也许选择另一个深度学习库。
    猜你喜欢
    • 1970-01-01
    • 2021-12-11
    • 2014-02-14
    • 2018-11-30
    • 2021-11-10
    • 2016-10-09
    • 1970-01-01
    • 1970-01-01
    • 2022-08-12
    相关资源
    最近更新 更多