I’m working on ubuntu server, got this when I want to install through pip:
RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda))
RuntimeError:
The detected CUDA version (12.0) mismatches the version that was used to compile
PyTorch (11.8). Please make sure to use the same CUDA versions.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
From this my cuda =12.0 while pytorch=11.8 ,it’s becuz I didn’t find pytorch 12.0 in https://pytorch.org/get-started/locally/ when installing.
So I should reinstall pytorch 12.0 now, how to do that?
here’s some info I can provide:
nvidia-smi output:
VVIDIA-SMI 525.105.17 Driver Version: 515.105.17 CUDA version 12.0
nvcc -V output:
Cuda comilation tools, release 12,0 V12.0.76
Build cuda_12.0.r12.0/compiler.31968024_0
I want to install pytorch in anaconda environment with python=3.10
How can I do? Thanks!!!
Btw I installed cuda in my personal directory, like this
in ~/.bashrc (of course my own )
# cuda
export PATH="/mydirectoyr/cuda-12.0/bin:$PATH"
export :D_LBRARY_PATH="/mydirectory/cuda/cuda-12.0/lib64:/mydirectory/cuda/cuda-12.0/mylib/lib64:$LD_LIBRARY_PATH"
Should I choose downgrade cuda ?