Why installing pytorch with upgrading my python version?

PyTorch does not support python 2.7 on Windows

I am on MacOS and was able to install PyTorch using Conda for Python 2.7 without any issues. What are the steps you are taking? Could you provide some example output?

The steps I followed are below. I created a new conda environment name py2.7 and installed PyTorch.

$ conda create -n py2.7 python=2.7
$ source activate py2.7
$ conda install pytorch torchvision -c pytorch
$ python
Python 2.7.15 |Anaconda, Inc.| (default, May  1 2018, 18:37:05)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'0.4.1'
1 Like