我已经安装了 theano 一个深度神经网络库并正在尝试运行一些示例,但看起来脚本无法找到某些模块。我尝试设置路径
export PYTHONPATH=/Library/Python/2.7/site-packages/theano
sys.path.append('/Library/Python/2.7/site-packages/theano')
但两者都不起作用。我得到这个错误。我看到模块已正确安装在 theano /Library/Python/2.7/site-packages/theano/tensor/.. 的子目录中,但不知何故 python 似乎无法找到模块
请有人帮忙。我正在使用Mac。
$python theano_mnist.py
Traceback (most recent call last):
File "theano_mnist.py", line 45, in <module>
import theano
File "/Users/prabhubalakrishnan/Desktop/theano.py", line 6, in <module>
from theano.tensor.nnet import conv
ImportError: No module named tensor.nnet