导入 theano 失败。“cannot import name gof”

Posted debuggor

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了导入 theano 失败。“cannot import name gof”相关的知识,希望对你有一定的参考价值。

按照网上教程安装好了 theano 之后,import theano 出现错误。“cannot import name gof”。
网上找了很多教程,都不可行。最后找到如下教程。亲测可行!
终于解决了!!!!

问题的解决方案就是安装 libpython
查看 conda list
确实没有 libpython
然后很简单的一句命令就解决问题。

conda install libpython
import theano
成功!

感触:安装这个库的时间真的划不着,花费太多时间了。

以上是关于导入 theano 失败。“cannot import name gof”的主要内容,如果未能解决你的问题,请参考以下文章

在 Windows 7 上导入 Theano 时出现 g++ 错误

Theano 梯度扫描操作失败

无法从“keras.backend”导入名称“theano_backend”

Theano:设备 gpu 初始化失败!原因=CNMEM_STATUS_OUT_OF_MEMORY

tensorflow和theano的python3 keras导入错误

从 Keras.layers.core 在创建模型时使用 theano 作为后端导入 Dense