和上一篇博客类似的问题,在执行Import theano时报出的Import theano gives the AttributeError: module 'theano' has no attribute 'gof'异常。
当运行Import theano时,出现如下异常:
继续输入Import theano时,异常信息如下图所示:
问题出现的原因:通过conda list 指令查看库文件,在库文件如下所示,但缺少libpython文件。
解决方法:通过简单一条指令:conda install libpython 即可添加库文件。如下所示:
安装完成后,进入python编程中,输入Import theano运行,错误信息消息,问题解决。