>>> import theano
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/theano/__init__.py", line 52, in <module>
from theano.gof import (
File "/Library/Python/2.7/site-packages/theano/gof/__init__.py", line 38, in <module>
from theano.gof.cc import \
File "/Library/Python/2.7/site-packages/theano/gof/cc.py", line 30, in <module>
from theano.gof import link
File "/Library/Python/2.7/site-packages/theano/gof/link.py", line 18, in <module>
from theano.gof.type import Type
File "/Library/Python/2.7/site-packages/theano/gof/type.py", line 17, in <module>
from theano.gof.op import CLinkerObject
File "/Library/Python/2.7/site-packages/theano/gof/op.py", line 25, in <module>
from theano.gof.cmodule import GCC_compiler
File "/Library/Python/2.7/site-packages/theano/gof/cmodule.py", line 8, in <module> …Run Code Online (Sandbox Code Playgroud) 我在ubuntu(ami实例)上成功安装了CUDA 7.0,但是当我键入'nvcc -version'时,它告诉我
The program 'nvcc' is currently not installed. You can install it by typing:
apt-get install nvidia-cuda-toolkit
You will have to enable the component called 'multiverse'
Run Code Online (Sandbox Code Playgroud)
这很奇怪,因为在/ usr/local中安装成功了,我已经在我的路径中添加了CUDA 7.0.我也尝试重新启动我的实例然后键入相同的命令,它不起作用.我也确定我的GPU的驱动程序是正确的.(当我使用theano运行nvcc测试时会发生同样的错误)