通过pip安装在GPU上运行Theano

时间:2019-04-01 13:12:01

标签: python python-3.x theano theano-cuda

我已经在主文件夹中创建了一个.theanorc文件,并添加了以下内容来设置theano以在GPU上运行:

[global]
floatX = float32
device = cuda0

[lib]
cnmem = 1

[cuda]
root = /usr/local/cuda

然后我使用pip install Theano命令安装了Theano。

但是当我尝试运行import theano时,出现此错误:

ERROR (theano.gpuarray): pygpu was configured but could not be imported or is too old (version 0.7 or higher required)

是否可以不使用anaconda来安装pygpu?

0 个答案:

没有答案