Installing-CUDA-Toolkit-cuDNN-OpenCV-and-PyTorch-on-Ubuntu-20.04 icon indicating copy to clipboard operation
Installing-CUDA-Toolkit-cuDNN-OpenCV-and-PyTorch-on-Ubuntu-20.04 copied to clipboard

Command 'nvcc' not found

Open Niranjan2054 opened this issue 2 years ago • 1 comments

After installing cuDNN, I had reboot my computer and then check

nvidia-smi

it works fine but when I try

nvcc --version 

It says

Command 'nvcc' not found, but can be installed with:

sudo apt install nvidia-cuda-toolkit

So what to do, Do I have to run

sudo apt install nvidia-cuda-toolkit

or simply go with next step

Niranjan2054 avatar Jun 21 '22 18:06 Niranjan2054

Try this: 1. cd ~ sudo gedit .bashrc

Add the following at the end of ~/.bashrc. Replace "abcpath" below with your own path and save the file export LD_LIBRARY_PATH=abcpath/cuda/lib64:$LD_LIBRARY_PATH

source .bashrc

Reboot

Ahsanr312 avatar Jun 24 '22 09:06 Ahsanr312