From torchvision import datasets throws error

Hi, I tried importing datasets from torchvision using the below instruction and it gave the error
Python 3.6.9 (default, Mar 10 2023, 16:46:00)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

from torchvision import datasets
/home/mistral/.local/lib/python3.6/site-packages/torchvision/io/ UserWarning: Failed to load image Python extension:
warn(f"Failed to load image Python extension: {e}")

May I know what could be the reason. An early reply will definitely help me.

You are not seeing an error but only a warning pointing out the image extension wasn’t built and you thus might not be able to use methods.