i was installing Pycuda in my mac and when i compile i get this error. I did install CUDA from nvidia and it seems to be a path problem.
*** WARNING: nvcc not in path.
i fixed it by assigning paths to the CUDA library
export PATH=${$PATH}:/usr/local/cuda/bin export CUDA_ROOT = /usr/local/cuda/
and then finally
python setup.py build sudo python setup.py install
Thats it!