【发布时间】:2015-10-05 07:21:30
【问题描述】:
我目前遇到错误
ImportError: 无法导入名称 gof
在导入 theano 时。
>>> 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 安装的。
希望得到你的建议来解决这个问题
【问题讨论】:
-
你看过github.com/Theano/Theano/issues/2406 吗?你会不会引起命名冲突(比如groups.google.com/forum/#!topic/theano-users/DWJMN9LJAWY)?当您运行 Python 或 Python 脚本时,您在哪个目录中?你还尝试了什么?
标签: python-2.7 theano