how to install pytorch in python2.7?
i am using python2.7 in virtual environment. i tried to install pytorch in python2.7 but i got error belows:



UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

  - pytorch-cpu -&gt; python[version='3.5.*|3.6.*']
  - pytorch-cpu -&gt; python[version='&gt;=3.5,&lt;3.6.0a0|&gt;=3.6,&lt;3.7.0a0|&gt;=3.7,&lt;3.8.0a0']

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to.  Your current python version
is (python=2.7).  Note that conda will not change your python version to a different minor version
unless you explicitly specify that.

The following specifications were found to be incompatible with each other:



Package wheel conflicts for:
python=2.7 -&gt; pip -&gt; wheel
pytorch-cpu -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; pip -&gt; wheel
Package vc conflicts for:
python=2.7 -&gt; sqlite[version='&gt;=3.27.2,&lt;4.0a0'] -&gt; vc[version='14.*|&gt;=14,&lt;15.0a0|&gt;=14.1,&lt;15.0a0']
python=2.7 -&gt; vc[version='9.*|&gt;=9,&lt;10.0a0']
pytorch-cpu -&gt; numpy[version='&gt;=1.11'] -&gt; vc[version='14|14.*|&gt;=14,&lt;15.0a0']
pytorch-cpu -&gt; vc[version='&gt;=14.1,&lt;15.0a0']
Package cffi conflicts for:
pytorch-cpu -&gt; cffi
pytorch-cpu -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; pip -&gt; requests -&gt; urllib3[version='&gt;=1.21.1,&lt;1.25'] -&gt; cryptography[version='&gt;=1.3.4'] -&gt; cffi[version='&gt;=1.7']
python=2.7 -&gt; pip -&gt; requests -&gt; urllib3[version='&gt;=1.21.1,&lt;1.25'] -&gt; cryptography[version='&gt;=1.3.4'] -&gt; cffi[version='&gt;=1.7']
Package pip conflicts for:
python=2.7 -&gt; pip
pytorch-cpu -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; pip
Package setuptools conflicts for:
python=2.7 -&gt; pip -&gt; setuptools
pytorch-cpu -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; pip -&gt; setuptools
Package msgpack-python conflicts for:
python=2.7 -&gt; pip -&gt; cachecontrol -&gt; msgpack-python
pytorch-cpu -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; pip -&gt; cachecontrol -&gt; msgpack-python




i tried conda install pytorch-cpu -c pytorch and link(https://pytorch.org/get-started/locally/). but it is not worked. so what should i do for install torch in python version2.7? i want to install pytorch cpu version. 

plz help:)

Here's the link to the PyTorch official download page

From here, you can choose the python version (2.7) and CUDA (None) and other relevant details based on your environment and OS.

Other helpful links:


windows
windows
mac
ubuntu
all

