简体   繁体   English

错误:NVCC编译器不在$ path中

[英]Error: NVCC compiler not in $path

I've got Theano working, and I've installed Cuda. 我已经让Theano工作了,并且已经安装了Cuda。

The nvcc compiler is in the windows path variable. nvcc编译器位于Windows路径变量中。

Yet, when I run theano, I get the following error: 但是,当我运行theano时,出现以下错误:

ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. 错误(theano.sandbox.cuda):在$ PATH上找不到nvcc编译器。 Check your nvcc installation and try again. 检查您的nvcc安装,然后重试。

I'm not really sure what could be going on. 我不太确定会发生什么。 Could it be that theano is looking at a different "$PATH"? 难道theano在看另一个“ $ PATH”吗?

Theanorc file: Theanorc文件:

[global]
floatX = float32
device = gpu0
[nvcc]
fastmath = True

(I get the same error regardless of whether I include [nvcc] ) (无论是否包含[nvcc]我都会遇到相同的错误)

Try add the following section in Thranorc file: [cuda] root = /usr/local/cuda-7.5 尝试在Thranorc文件中添加以下部分:[cuda] root = /usr/local/cuda-7.5

I encountered same issue and solved by add these 2 lines. 我遇到了相同的问题,并通过添加这两行来解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM