AttributeError: module 'torch' has no attribute '_utils'

I installed

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117

also my nvcc --version is 12.1


and this is my system details.

However, when I run the code it shown

AttributeError: module ‘torch’ has no attribute ‘_utils’

So I tried to run conda install pytorch torchvision torchaudio cudatoolkit=11.1 as I asked chatGPT but it still show same issue.

The question is what should I import or install to fix this issue.

Please help. Thank you in advanced.