Not a supported wheel on this platform

sreeni5493: <p>I tried installing pytorch in my pc which has Debian. I get error stating that it is not a supported wheel on this platform both for with and without UCS2 versions of python 2.7</p>
<pre><code>torch-0.2.0.post2-cp27-cp27m-manylinux1_x86_64.whl is not a supported wheel on this platform.
torch-0.2.0.post2-cp27-cp27mu-manylinux1_x86_64.whl is not a supported wheel on this platform.


$uname -a
Linux senior 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux

$lsb_release -a
No LSB modules are available.
Distributor ID:	Debian  
Description:	Debian GNU/Linux 8.5 (jessie)
Release:	8.5
Codename:	jessie

$python --version
Python 2.7.9</code></pre>

smth: <p><code>pip --version</code></p>
<p>That will reveal which version of python your <code>pip</code> is associated with, and then it’ll be easier to figure out the problem.</p>

sreeni5493: <pre><code>pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)</code></pre>

smth: <p>that’s really weird. from what you’ve shown so far, one of those wheels has to work.</p>

sreeni5493: <p>ya it is indeed weird. I am able to install it in my laptop. Just doesn’t seem to work on my pc…</p>
<p>It is interesting to note that the below command worked:</p>
<pre><code>pip install --user https://s3.amazonaws.com/pytorch/whl/cu75/torch-0.1.6.post22-cp27-none-linux_x86_64.whl
</code></pre>
<p>This is an older version though. I found this answer from one of your comments which actually solved the problem back in January for some other user. I can download this version. But if there is a fix I would obviously would love to install the latest version.</p>

smth: <p>the obvious but hacky fix is to rename the file <code>torch-0.2.0.post2-cp27-cp27mu-manylinux1_x86_64.whl</code> to <code>torch-0.2.0.post2-cp27-cp27mu-none_x86_64.whl</code></p>

shehzikhan: <p>Stuck at same place. Wheel is not supported, while I’m using Linux Mint (Ubuntu 16.04) with Python 2.7<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/2X/f/f6c72ea2bb13cb621424b7ddb874331a0d033fe5.png" data-download-href="https://discuss.pytorch.org/uploads/default/f6c72ea2bb13cb621424b7ddb874331a0d033fe5" title="Screenshot from 2017-08-29 11-28-07"><img src="https://discuss.pytorch.org/uploads/default/optimized/2X/f/f6c72ea2bb13cb621424b7ddb874331a0d033fe5_2_690x389.png" alt="Screenshot from 2017-08-29 11-28-07" data-base62-sha1="zd6cCuIdktOOfc1fmQ111IyfDi5" width="690" height="389" srcset="https://discuss.pytorch.org/uploads/default/optimized/2X/f/f6c72ea2bb13cb621424b7ddb874331a0d033fe5_2_690x389.png, https://discuss.pytorch.org/uploads/default/optimized/2X/f/f6c72ea2bb13cb621424b7ddb874331a0d033fe5_2_1035x583.png 1.5x, https://discuss.pytorch.org/uploads/default/original/2X/f/f6c72ea2bb13cb621424b7ddb874331a0d033fe5.png 2x" data-dominant-color="EBECEB"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Screenshot from 2017-08-29 11-28-07</span><span class="informations">1360×768 68.8 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

shehzikhan: <p>does not work for me</p>

QuantScientist: <p>I provided full instructions here:</p><aside class="quote quote-modified" data-post="41" data-topic="134">
  <div class="title">
    <div class="quote-controls"></div>
    <img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/quantscientist/48/1393_2.png" class="avatar">
    <a href="https://discuss.pytorch.org/t/wheel-not-supported-for-pip-install/134/41">"wheel not supported" for pip install</a> 
  </div>
  <blockquote>
    Torch CPU
!pip install <a href="http://download.pytorch.org/whl/cu75/torch-0.2.0.post1-cp27-cp27mu-manylinux1_x86_64.whl" rel="noopener nofollow ugc">http://download.pytorch.org/whl/cu75/torch-0.2.0.post1-cp27-cp27mu-manylinux1_x86_64.whl</a>

!pip install torchvision
!pip install --upgrade <a href="http://download.pytorch.org/whl/cu75/torch-0.2.0.post1-cp27-cp27mu-manylinux1_x86_64.whl" rel="noopener nofollow ugc">http://download.pytorch.org/whl/cu75/torch-0.2.0.post1-cp27-cp27mu-manylinux1_x86_64.whl</a>

!pip install --upgrade torchvision


Torch GPU
Build PyTorch from source
RUN git clone <a href="https://github.com/pytorch/pytorch.git" rel="noopener nofollow ugc">https://github.com/pytorch/pytorch.git</a>  
&amp;&amp; cd pytorch  
&amp;&amp; git checkout 4eb448a051a1421de1dda9bd2ddfb34396eb7287  
&amp;&amp; TORCH_CUDA_ARCH_LIST=“3.5 5.2 6.0 6.1+PTX”…
  </blockquote>
</aside>


smth: <p><a class="mention" href="/u/shehzikhan">@shehzikhan</a> what’s the output of <code>pip --version</code>?</p>

sreeni5493: <p>Hi.</p>
<p>changing to none for whl file didn’t work.</p>
<p>What did work was building from source. Also had to set environment variable No_Cuda to true. Just an information to pass on to others.</p>

Noman_Sadiq: <p>I will suggest you all to see below :</p>
<p>The command <code>pip install http://download.pytorch.org/whl/cu75/torch-0.2.0.post1-cp27-cp27mu-manylinux1_x86_64.whl</code> is used to install a specific version of PyTorch (version 0.2.0.post1) from a wheel (<code>.whl</code> ) file. The wheel file is a pre-compiled version of PyTorch that is optimized for a specific system configuration, in this case a Linux system with CUDA 7.5 (<code>cu75</code> ). The <code>cp27</code> and <code>cp27mu</code> in the file name indicate that this wheel is built for Python 2.7.</p>
<p>*I will suggest you al to install miniconda and pytorch same then run *<br>
<em>pip install torch (if pip is added it will work otherwise add it )</em><br>
<em>it will work fine</em></p>
<p>And also watch this link (<a href="https://www.youtube.com/watch?v=1_zLLeL0N1g" class="inline-onebox" rel="noopener nofollow ugc">Python filename.whl is not a supported wheel on this platform - YouTube</a>)</p>