警告(theano.configdefaults):未检测到g ++! Theano将无法执行优化的C实现

时间:2016-11-11 06:18:18

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

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

我安装了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平台。

我现在该怎么办?

1 个答案:

答案 0 :(得分:0)

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

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