Error nvidia-smi :Failed to initialize NVML: Driver/library version mismatch

Don’t do the last step, installing “cuda”, stead install “cuda-toolkit”