I installed pytorch via
conda install pytorch-cpu torchvision-cpu -c pytorch
And I also tried
pip3 install https://download.pytorch
Once after creating conda environment, activate it.
And to install PyTorch,
conda install -c pytorch pytorch