python - 警告 (theano.configdefaults) : g++ not detected ! Theano 将无法执行优化的 C 实现

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

我正在尝试运行 theano 库代码我的设置是 macos sierra x64 和带有 anaconda 包的 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 和 libpython 是仅适用于 win 平台。

我现在该怎么办?

最佳答案

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

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

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

相关文章:

python - 无法在 ubuntu 中使用转储

python - Pandas to_excel 不写换行符

python - 将 Timedelta 从 Pandas Dataframe 转换为秒值

c++ - Linux 共享库中缺少函数

c++ - set.clear() 在删除元素之前调用包含元素的析构函数

python - 递归搜索父子组合并在 python 和 XML 中构建树

python - 将字典的字典转换为 Pandas 中的数据框

python - TkInter 在文件名模式匹配中插入虚假通配符

python - 基于关闭年份条件 Python 添加和减去值

linux - make file编译两个C程序文件