大佬教程收集整理的这篇文章主要介绍了导入theano错误“cannot import name gof”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
大多数时候,当我看到此错误时,它是由这两个错误引起的:
1)Theano中的语法错误。更新Theano并确保没有本地修改。我很紧张地看到了Theano大师的这个错误,但以防万一。
2)当安装了Theano的多个版本时。
在两种情况下,都删除所有版本的Theano。多次执行以确保没有剩余。然后重新安装。
从内存来看,这始终解决了开发过程中不是语法错误时的问题(但在您使用的Theano的主版本中不是)
我目前遇到错误
ImportError:无法导入名称GOF
>>> import theano
TraceBACk (most recent call last):
File "<pysHell#3>",line 1,in <module>
import theano
File "C:\Python27\lib\site-packages\theano\__init__.py",line 63,in <module>
from theano.compile import (
File "C:\Python27\lib\site-packages\theano\compile\__init__.py",line 9,in <module>
from theano.compile.function_module import *
File "C:\Python27\lib\site-packages\theano\compile\function_module.py",line 16,in <module>
from theano import gof
ImportError: cAnnot import name gof
我正在使用python 2.7.10()。Theano是使用安装的pip install –upgrade –no-deps git+git://github.com/Theano/Theano.git。希望能得到您解决这个问题的建议
以上是大佬教程为你收集整理的导入theano错误“cannot import name gof”全部内容,希望文章能够帮你解决导入theano错误“cannot import name gof”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。