Could you try to run this: python -c "import torchvision"
If you couldn’t, it means that there is a path problem inside your packages. You could check the other threads here:

(Provide issue+solution) https://github.com/pytorch/pytorch/issues/1376 64

(Provide & Show issue+solution) https://www.programmersought.com/article/8096202170/ 37


Hope this helps, cheers~