Not able to import torch

I have installed pytorch in my conda environment using:
conda install pytorch -c pytorch
but while importing the package, it is showing the error.

Figures are attached as reference.
Kindly help.

If you don’t have a GPU in your system, you would need to install the CPU packaged as explained here.