I installed pytorch via
conda install pytorch-cpu torchvision-cpu -c pytorch
And I also tried
pip3 install https://download.pytorch
I am struggling the above answer and it does not work in my case.
That is because I install the porch under window COMMAND PROMPT.