Is torchvision working in some scripts and raises an error regarding the CUDA version in other scripts?

Yes, I encountered this kind of compatibility issue and
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176


This means I should install cudatoolkit == 9.0 right?
And in order to use other updated version of cudatoolkit. I need to upgrade my Driver, right?
Thank you again @ptrblck