我使用Ubuntu的下方14.04 theano安裝命令:Theano失蹤NVCC編譯
sudo apt-get install python3-numpy python3-scipy python3-dev python3-pip python3-nose g++ libopenblas-dev git
sudo pip install Theano
我已經安裝了cuda7.5。如果我運行ncvv --version
,我得到以下信息:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
我不能使用GPU theano版本。我的命令和錯誤消息是在這裏:
$sudo THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python test1.py
ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again.
[Elemwise{exp,no_inplace}(<TensorType(float32, vector)>)]
Looping 1000 times took 2.507168 seconds
Result is [ 1.23178029 1.61879337 1.52278066 ..., 2.20771813 2.29967761
1.62323284]
Used the cpu
命令之前,不要使用sudo。顯示命令的結果:「sudo which nvcc」。 – 404pio
如果我不使用,我會得到權限被拒絕的錯誤。空的結果。這NVCC $' – zumma
當您使用SUDE'$ sudo的那麼你的PATH環境沒有看到NVCC – 404pio