Failed to load image Python extension

Hello I am getting this error I tried different torch and torchvision versions and nothing worked. Any suggestion please?

env/lib/python3.10/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory
warn(f"Failed to load image Python extension: {e}")

This message should only be a warning or do you see any failures afterwards?
I believe the pip wheels did not ship with torchvision.io extensions, which is why this warning is raised.