CUDA 7 and 10 installed, but NVCC presents only CUDA 7

the

/ usr / local /

sample folder

cuda

Y

cuda-10.0

binder.

as well

$ cat /usr/local/cuda/version.txt

shows version 10, but nvcc shows 7. Please tell me how to solve this problem.