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
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
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
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)`
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
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
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.