I am trying to install pytorch ( http://pytorch.org/ ) on Linux, and according to my machine configuration, I have to run the command
pip install https://s3.amazonaws.com/pytorch/whl/torch-0.1.6.post17-cp27-cp27mu-linux_x86_64.whl
On one machine (Linux Slackware 14.1 distribution) the installation fails: torch-0.1.6.post17-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform.
, and on the other (Ubuntu 15.10) it completes successfully. From what I understood, the problem seems to cp27mu
in the name of the wheel.
Using the import pip; print(pip.pep425tags.get_supported())
command import pip; print(pip.pep425tags.get_supported())
import pip; print(pip.pep425tags.get_supported())
from the Python shell, I get it from the Slackware machine:
[('cp27', 'cp27m', 'manylinux1_x86_64'), ('cp27', 'cp27m', 'linux_x86_64'), ('cp27', 'none', 'manylinux1_x86_64'), ('cp27', 'none', 'linux_x86_64'), ('py2', 'none', 'manylinux1_x86_64'), ('py2', 'none', 'linux_x86_64'), ('cp27', 'none', 'any'), ('cp2', 'none', 'any'), ('py27', 'none', 'any'), ('py2', 'none', 'any'), ('py26', 'none', 'any'), ('py25', 'none', 'any'), ('py24', 'none', 'any'), ('py23', 'none', 'any'), ('py22', 'none', 'any'), ('py21', 'none', 'any'), ('py20', 'none', 'any')]
and this is from an Ubuntu machine:
[('cp27', 'cp27mu', 'manylinux1_x86_64'), ('cp27', 'cp27mu', 'linux_x86_64'), ('cp27', 'none', 'manylinux1_x86_64'), ('cp27', 'none', 'linux_x86_64'), ('py2', 'none', 'manylinux1_x86_64'), ('py2', 'none', 'linux_x86_64'), ('cp27', 'none', 'any'), ('cp2', 'none', 'any'), ('py27', 'none', 'any'), ('py2', 'none', 'any'), ('py26', 'none', 'any'), ('py25', 'none', 'any'), ('py24', 'none', 'any'), ('py23', 'none', 'any'), ('py22', 'none', 'any'), ('py21', 'none', 'any'), ('py20', 'none', 'any')]
From https://www.python.org/dev/peps/pep-0513/ it seems to me that support for cp27m
or cp27mu
depends on the parameter passed at compile time, --enable-unicode
.
Now, maybe at this moment I should not even ask a question, but to be sure, does this mean that I need to compile Python with --enable-unicode=ucs4
on a Slackware machine to install this wheel?