I have installed torchvision in anaconda, but despite that, I am getting an import error when importing it into my code.
Here please note I have pytorch and torchvision installed on my system. But despite that, I am getting an import error while importing the module.
pyt1718×321 67.5 KB
The code for importing is given below, which is flashing the error.
import torchvision.datasets as datasets
import torchvision.transform as transforms

Please help me out with this error. Please note I don’t have a GPU, so have only installed the cpu version of pytorch using,
conda install pytorch torchvision cpuonly -c pytorch
Please help me sort out this issue.