【问题标题】:WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations警告(theano.configdefaults):未检测到 g++! Theano 将无法执行优化的 C 实现
【发布时间】:2016-11-11 06:18:17
【问题描述】:

我正在尝试运行 theano 库代码我的设置是 macos sierra x64 和带有 anaconda pacakges 的 pycharm。

我安装了theano:pip install theano,它安装成功,但是当我尝试运行代码时,它给出了这个错误:

   WARNING (theano.configdefaults): g++ not detected ! Theano will be
 unable to execute optimized C-implementations (for both CPU and GPU) and
 will default to Python implementations. Performance will be severely
 degraded. To remove this warning, set Theano flags cxx to an empty string.

然后我在网上搜索,发现我必须安装conda install mingw libpython 才能使用theano,所以我尝试了但后来我发现这两个模块mingw and libpython 仅适用于win平台。

我现在该怎么办?

【问题讨论】:

  • 看一下在 Mac 上安装 g++ 的说明here

标签: python python-3.x g++ anaconda theano


【解决方案1】:

由于您使用的是 anaconda 发行版,因此使用 conda 包管理器安装 theano 是最简单的。

注意:macos 带有一个开箱即用的 Python 解释器(我认为是 2.7)。你确定pipanaconda python 中安装了 theano 吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-08-11
    • 2016-11-05
    • 1970-01-01
    • 1970-01-01
    • 2021-07-24
    • 2020-12-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多