Warning: Unless you have a very specific reason not to, just follow the official installation instructions from https://pytorch.org. They are far more likely to be accurate and up-to-date.
Here is how to install the PyTorch package from the official channel, on Windows using Anaconda, as of the time of writing this comment (31/03/2020):
PyTorch without CUDA:
conda install pytorch torchvision cpuonly -c pytorch
PyTorch with CUDA 10.1:
conda install pytorch torchvision cudatoolkit=10.1 -c pytorch
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…