简体   繁体   中英

Warning: nvcc path != CUDA_PATH while installing chainer with sudo CUDA_PATH

I was running a code in orenmel , it is cool with CPU. But when I ran -train_context2vec.py- with GPU, I recieved:

Warning: nvcc path != CUDA_PATH ... cuda.check_cuda_available() RuntimeError: CUDA environment is not correctly set up, cannot import name core

So I did this: image

Then I used this sudo CUDA_PATH=/usr/local/cuda-8.0 pip install chainer . It said:

error: command "x86_64-linux-gnu-gcc" failed with exit status 1".

If the CUDA_PATH is set somewhere else.Or I just use sudo pip install chainer.It can be installed. Others can use the gpu in Keras and theano.

这是通过卸载theano解决的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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