"wheel not supported" for pip install

Torch CPU

!pip install http://download.pytorch.org/whl/cu75/torch-0.2.0.post1-cp27-cp27mu-manylinux1_x86_64.whl

!pip install torchvision

!pip install --upgrade http://download.pytorch.org/whl/cu75/torch-0.2.0.post1-cp27-cp27mu-manylinux1_x86_64.whl

!pip install --upgrade torchvision

Torch GPU

Build PyTorch from source

RUN git clone GitHub - pytorch/pytorch: Tensors and Dynamic neural networks in Python with strong GPU acceleration
&& cd pytorch
&& git checkout 4eb448a051a1421de1dda9bd2ddfb34396eb7287
&& TORCH_CUDA_ARCH_LIST=“3.5 5.2 6.0 6.1+PTX”
TORCH_NVCC_FLAGS=“-Xfatbin -compress-all”
python setup.py install
&& rm -rf pytorch

Build torch-vision from source

RUN git clone GitHub - pytorch/vision: Datasets, Transforms and Models specific to Computer Vision
&& cd vision
&& git checkout 83263d8571c9cdd46f250a7986a5219ed29d19a1
&& python setup.py install
&& rm -rf vision

Refer to my docker for the full script:
https://github.com/QuantScientist/Deep-Learning-Boot-Camp/blob/master/docker/Dockerfile.gpu3

@Adel_Saleh1 why are you installing torch-0.2.1? who gave you that command? Follow the commands from our website.

Hello @smth Thanks that was not the proper link I should paste. but the true reason was updating the pip and updating the numpy and then installing pytorch:

1-Upgrade your pip
sudo -H pip2 install --upgrade pip

2-Upgrade your numpy
sudo pip2 install numpy --upgrade

3-install update pytorch
sudo pip2 install http://download.pytorch.org/whl/cu80/torch-0.2.0.post2-cp27-cp27mu-manylinux1_x86_64.whl

2 Likes

Hi I am getting the same error when running:

pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp35-cp35m-manylinux1_x86_64.whl
torch-0.2.0.post3-cp35-cp35m-manylinux1_x86_64.whl is not a supported wheel on this platform.

Here are my information:

Python 3.5.2

uname -a

Linux cedar5.cedar.computecanada.ca 3.10.0-514.21.1.el7.x86_64 #1 SMP Thu May 25 17:04:51 UTC 2017 x86_64 GNU/Linux

lsb_release -a

LSB Version: n/a Distributor ID: CentOS Description: CentOS Linux release 7.3.1611 (Core) Release: 7.3.1611 Codename: Core

@smth: Could you provide the right who?

Thans in advance,

Best

@fabienbaradel what is the output of pip --version?

The output of pip --version is:
pip 8.1.1

ps: Finally I install pytorch from source… But it would be interesting to understand what is the problem.

hmm, pip --version should output more things, like which python it is associated with. For example:

$ pip --version
pip 9.0.1 from /Users/soumith/miniconda2/lib/python2.7/site-packages (python 2.7)

Yes sorry, below is the entire output:
pip 8.1.1 from /cvmfs/soft.computecanada.ca/nix/store/v29pphgl66qjvjck1mn4pcm5g9agk5kh-python3-3.5.2/lib/python3.5/site-packages (python 3.5)

So I am not sure what the problem is. I want to install pytorch with python 3.6, but it says not a supported wheel on this platform.
Here is my pip/python version:

Tony-PengdeMacBook-Pro:~ tony_loves_carol$ pip --version
pip 9.0.1 from /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg (python 2.7)
Tony-PengdeMacBook-Pro:~ tony_loves_carol$ pip3 --version
pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (python 3.6)

Besides, when I install pytorch with python 2.7, it shows this:

   build/temp.macosx-10.12-intel-2.7/check_libyaml.c:2:10: fatal error: 'yaml.h' file not found
    #include <yaml.h>
             ^
    1 error generated.
    
    libyaml is not found or a compiler error: forcing --without-libyaml
    (if libyaml is installed correctly, you may need to
     specify the option --include-dirs or uncomment and
     modify the parameter include_dirs in setup.cfg)
    running install_lib
    creating /Library/Python/2.7/site-packages/yaml
    error: could not create '/Library/Python/2.7/site-packages/yaml': Permission denied

Can anyone tell me what I should do?

@smth I wanted to install pytorch with python 2.7, then I got as following:

pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl

    torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl is not a supported wheel on this platform.
    Storing debug log for failure in /home/sedlight/.pip/pip.log

python -V

 `Python 2.7.6`

pip -V

`pip 1.5.4 from /home/sedlight/workspace/wei/tensorflow/local/lib/python2.7/site-packages (python 2.7)`

HELP! can anyone tell me what to do?

@JIAYI is this a 64-bit Linux machine?
What is output of uname -a and lsb_release -a
It is weird, this is a perfect manylinux1 wheel.

uname -a
Linux sedlight 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
I also thought it was too weird :open_mouth:

oh @JIAYI i think your python is of a different unicode width.

There are two commands listed in the instructions, if first command doesn’t work it is instructed to try the second command. Can you try the second command instead.

Sorry for not mention it before. I have tried the second choice. It gave me the same result:

    pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27m-manylinux1_x86_64.whl
    
    torch-0.2.0.post3-cp27-cp27m-manylinux1_x86_64.whl is not a supported wheel on this platform.
    Storing debug log for failure in /home/sedlight/.pip/pip.log

Encountered exactly same thing

this stackoverflow thread says first upgrading pip will fix it.

python -m pip install --upgrade pip

If this also doesn’t work, then here’s a last resort:

wget http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl
mv torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl torch-0.2.0.post3-cp27-none-linux_x86_64.whl
pip install torch-0.2.0.post3-cp27-none-linux_x86_64.whl
1 Like

Linux xx.xx.xx.xx 4.6.7 #1 SMP Sat Nov 5 19:14:26 EDT 2016 x86_64 Intel® Xeon® CPU E5-2667 v3 @ 3.20GHz GenuineIntel GNU/Linux
after uname -a

Update does not work, but the last resort works. Thank you!

It seems updating the pip could fix this problem. The download process began to work. Thanks for all your help so much!!
Hope that I dont need to bother you any more. The best wishes to you man~:grin:

I’m having this problem, too, with both wheels, installed from the URLs or from local disk. Upgraded both pip and numpy:

root@upekkha:~# uname -a
Linux upekkha 4.8.0-59-generic #64-Ubuntu SMP Thu Jun 29 19:38:34 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
root@upekkha:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.10
Release:        16.10
Codename:       yakkety
The directory '/home/alx/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner
 of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/alx/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of tha
t directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: pip in /usr/local/lib/python3.5/dist-packages
Collecting numpy
  Downloading numpy-1.13.3-cp35-cp35m-manylinux1_x86_64.whl (16.9MB)
    100% |████████████████████████████████| 16.9MB 41kB/s 
Installing collected packages: numpy
  Found existing installation: numpy 1.13.1
    Uninstalling numpy-1.13.1:
      Successfully uninstalled numpy-1.13.1
Successfully installed numpy-1.13.3
root@upekkha:~/alien# wget http://download.pytorch.org/whl/cu75/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl                                               [51/425]
--2017-10-20 19:09:41--  http://download.pytorch.org/whl/cu75/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl
Resolving download.pytorch.org (download.pytorch.org)... 54.192.48.131, 54.192.48.18, 54.192.48.24, ...
Connecting to download.pytorch.org (download.pytorch.org)|54.192.48.131|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 341002408 (325M) [binary/octet-stream]
Saving to: ‘torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl’

torch-0.2.0.post3-cp27-cp27mu-manylinux1_x 100%[======================================================================================>] 325.21M  2.24MB/s    in 2m 6s   

2017-10-20 19:11:47 (2.59 MB/s) - ‘torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl’ saved [341002408/341002408]

root@upekkha:~/alien# pip install ./torch*
The directory '/home/alx/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner
 of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/alx/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of tha
t directory. If executing pip with sudo, you may want sudo's -H flag.
torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl is not a supported wheel on this platform.
root@upekkha:~/alien# wget http://download.pytorch.org/whl/cu75/torch-0.2.0.post3-cp27-cp27m-manylinux1_x86_64.whl                                                        
--2017-10-20 19:12:19--  http://download.pytorch.org/whl/cu75/torch-0.2.0.post3-cp27-cp27m-manylinux1_x86_64.whl
Resolving download.pytorch.org (download.pytorch.org)... 52.85.101.236, 52.85.101.106, 52.85.101.78, ...
Connecting to download.pytorch.org (download.pytorch.org)|52.85.101.236|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 341009886 (325M) [binary/octet-stream]
Saving to: ‘torch-0.2.0.post3-cp27-cp27m-manylinux1_x86_64.whl’

torch-0.2.0.post3-cp27-cp27m-manylinux1_x8 100%[======================================================================================>] 325.21M  2.87MB/s    in 2m 11s  

2017-10-20 19:14:30 (2.49 MB/s) - ‘torch-0.2.0.post3-cp27-cp27m-manylinux1_x86_64.whl’ saved [341009886/341009886]

root@upekkha:~/alien# pip install torch-0.2.0.post3-cp27-cp27m-manylinux1_x86_64.whl
The directory '/home/alx/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner
 of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/alx/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of tha
t directory. If executing pip with sudo, you may want sudo's -H flag.
torch-0.2.0.post3-cp27-cp27m-manylinux1_x86_64.whl is not a supported wheel on this platform.