Command 'nvcc' not found, but can be installed with: sudo apt install nvidia-cuda-toolkit code example
Example: nvcc not working after installing cuda
export PATH=/usr/local/cuda-10.2/bin${PATH:+:${PATH}}$
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}