【问题标题】:AttributeError: module 'theano' has no attribute 'tests'AttributeError:模块“theano”没有属性“测试”
【发布时间】:2017-01-21 13:25:11
【问题描述】:

我正在尝试在我的ubuntu上使用theano gpu,但是每次成功运行一次后,下次尝试运行时都会给我这样的错误。不知道为什么,谁能帮帮我?

导入theano 回溯(最近一次通话最后): 文件“”,第 1 行,在 文件“/home/sirius/anaconda3/lib/python3.5/site-packages/theano/init.py”,第 95 行,在 如果 hasattr(theano.tests, "TheanoNoseTester"): AttributeError: 模块 'theano' 没有属性 'tests'

【问题讨论】:

    标签: python-3.x deep-learning theano-cuda


    【解决方案1】:

    我遇到了同样的问题。我只是用conda install nose修复它

    【讨论】:

      【解决方案2】:

      最新版 Theano (1.04)

      import theano没有安装nose包会报错

      通过 conda 或 pip 安装 pip install nose / conda install nose

      【讨论】:

        猜你喜欢
        • 2017-08-01
        • 2018-06-23
        • 2017-05-01
        • 2020-12-04
        • 2014-10-23
        • 2017-10-21
        • 2018-04-14
        • 2019-02-18
        • 1970-01-01
        相关资源
        最近更新 更多