Hi @imharjyotbagga,
I have several ways for you to check the issue:

Open your terminal, then type the

python -c "import sys; print(sys.path)"


Check your site-package folder and make sure that datasets and transform folders are exists. (/home/gxuvimr/anaconda3/envs/pytorch/lib/python3.8/site-packages/torchvision
Please make sure that your site-package folder is listed in the sys.path.
Please also double check “_C.pyd” in the folder that I have just mentioned. Because in my past cases, import error is happening due to this file.

Hope this helps in your debugging, thanks~