I locally installed my CUDA Toolkit12.5. And everything went well (I can successfully call torch.cuda.is_available()
and returns ture
) before I install torchvision with cmd conda install torchvision -c pytorch
. After installing torchvision, I even couldn’d import torch with error OSError: [WinError 127] Error loading "D:\anaconda3\envs\pytorch2.4.1\Lib\site-packages\torch\lib\torch_cuda.dll" or one of its dependencies.
And torch 2.4.1+cu124
,torchvision 0.19.1+cu124
are results ofpip list | findstr torch
. How can I do to tackle with this issue?
Check which dependency is missing and/or try to reinstall torchvision
.
I would not recommend creating other fake accounts to bump your topic.