我正在尝试运行 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 平台。

我现在应该怎么办?

最佳答案

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

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

关于python - 警告 (theano.configdefaults) : g++ not detected ! Theano 将无法执行优化的 C 实现,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/40542214/

10-13 00:09