I often saw how to install pytorch on intel & python3 but no python2...!
How can I install pytorch on intel & python2
You can install PyTorch in two ways
Using pip
and
Using conda
PyTorch installation using pip
pip install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
PyTorch installation via conda
conda install pytorch torchvision cpuonly -c pytorch