Is this an “import torch” error? Maybe you installed the wrong version? How did you install Pytorch, from source? I recommend uninstalling and then installing via
conda install pytorch-cpu torchvision-cpu -c pytorch