Unable to import torch

Try this instead and see if it installs the correct version of the package - worked for me…

conda install -c pytorch torchvision-cpu

Hi Sweller,
Thanks for your quick response. I got this error


The error message shows that the install failed because you have Python 3.9 installed in your existing environment and some of the packages won’t work with Python 3.9.

I suggest that you install everything to a new environment with Python 3.8 or lower installed.