"wheel not supported" for pip install

I’m Ubuntu 14.04, with the latest version of pip, with no CUDA, so I did
pip install https://s3.amazonaws.com/pytorch/whl/cu75/torch-0.1.6.post22-cp27-cp27mu-linux_x86_64.whl
which gave the error
torch-0.1.6.post22-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform.

Not sure if that’s a problem in your case, but I had a similar issue (or a similar message) when I accidentally tried to install a package into a wrong environment (a py 3.5 wheel into a 3.6 env). Have you checked that your instance has Python 2.7 in your env and that the default pip is the pip of that python install?

4 Likes

I’m encountering the same issue on Ubuntu 14.04, python 2.7.13.
pip install https://s3.amazonaws.com/pytorch/whl/cu80/torch-0.1.6.post22-cp27-cp27mu-linux_x86_64.whl -v

torch-0.1.6.post22-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform. Exception information: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 257, in run InstallRequirement.from_line(name, None)) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 168, in from_line raise UnsupportedWheel("%s is not a supported wheel on this platform." % wheel.filename) UnsupportedWheel: torch-0.1.6.post22-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform.

@Nadav, are you on UBUNTU 32-bit? Are you on an ARM processor?

We dont support 32-bit platforms.

can you tell me what the output of:

uname -a
lsb_release -a

Yes I have Python 2.7, and the pip is the pip for that python.

I get the same error with the same wheel, on a rhel6 system (ugh). I’m working in a virtualenv without root.

pip install https://s3.amazonaws.com/pytorch/whl/cu75/torch-0.1.6.post22-cp27-cp27mu-linux_x86_64.whl
  torch-0.1.6.post22-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform.
  Storing debug log for failure in /u/tsercu/.pip/pip.log
pip --version
  pip 1.5.6 from /opt/share/Python-2.7.9/lib/python2.7/site-packages (python 2.7)
lsb_release -a
  LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
  Distributor ID: RedHatEnterpriseServer
  Description:    Red Hat Enterprise Linux Server release 6.6 (Santiago)
  Release:        6.6
  Codename:       Santiago

I am getting the same error

Output of uname -a

Linux billy.local 3.13.0-66-generic #108-Ubuntu SMP Wed Oct 7 15:20:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Output of lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty

Tom, if you are using RHEL6, I HIGHLY recommend Anaconda.
Tom, can you post this file somewhere: > Storing debug log for failure in /u/tsercu/.pip/pip.log

I will rebuild the pip wheels with manylinux this week so that it works on ALL machines.

pip.log has no extra info, content pasted below.
Just built from source which is looking good. Will check out anaconda in the future for better install.

$ cat ~/.pip/pip.log
torch-0.1.6.post22-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform.
Exception information:
Traceback (most recent call last):
  File "/opt/share/Python-2.7.9/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/opt/share/Python-2.7.9/lib/python2.7/site-packages/pip/commands/install.py", line 257, in run
    InstallRequirement.from_line(name, None))
  File "/opt/share/Python-2.7.9/lib/python2.7/site-packages/pip/req.py", line 167, in from_line
    raise UnsupportedWheel("%s is not a supported wheel on this platform." % wheel.filename)
UnsupportedWheel: torch-0.1.6.post22-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform.

@smth do you expect the new build to also solve my errors? Thanks!

@Kalamaya yes. I expect the new wheel to solve your errors as well. Working on it now.

1 Like

Hi everyone.

This should be fixed now for all of you.

The new command is available on the website, but pasting here for convenience:

pip install https://s3.amazonaws.com/pytorch/whl/cu75/torch-0.1.6.post22-cp27-none-linux_x86_64.whl 
pip install torchvision
2 Likes

That fixed it for me.

Will this enable me to use CUDA ? My driver is 8.0 on LINUX…

@kalamaya yes it does

I am facing the same problem on ubuntu.

$ uname -a
Linux koparakesari 3.19.0-65-generic #73~14.04.1-Ubuntu SMP Wed Jun 29 21:05:22 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ sudo pip install torch-0.1.9.post2-cp35-cp35m-linux_x86_64.whl
torch-0.1.9.post2-cp35-cp35m-linux_x86_64.whl is not a supported wheel on this platform.

Help me please

@paarulakan you dont seem to have a python 3.5 based install. To figure out your python version, run this command:
pip --version
python --version

@smth Hi, I use Python 3.6, so what is the alternative of https://s3.amazonaws.com/pytorch/whl/cu75/torch-0.1.6.post22-cp27-cp27mu-linux_x86_64.whl? Thank you!

I Google it by myself again, and I find it maybe: https://s3.amazonaws.com/pytorch/whl/cu80/torch-0.1.8.post1-cp36-cp36m-linux_x86_64.whl.

1 Like

our website has a chooser for your wheels. choose your appropriate options and the correct link is given:
http://pytorch.org/