-1

we are installing the pkg: MarkupSafe-1.1.0-cp27-cp27m-manylinux1_x86_64.whl by pip

we download the pkg from - https://pypi.org/project/MarkupSafe/#files

we have redhat OS with version 7.2

as the follwing:

 pip install -v --no-index --find-links PIP/ MarkupSafe-1.1.0-cp27-cp27m-manylinux1_x86_64.whl
Ignoring indexes: https://pypi.python.org/simple
Requirement 'MarkupSafe-1.1.0-cp27-cp27m-manylinux1_x86_64.whl' looks like a filename, but the file does not exist
MarkupSafe-1.1.0-cp27-cp27m-manylinux1_x86_64.whl is not a supported wheel on this platform.
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 223, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run
    wheel_cache
  File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 275, in populate_requirement_set
    wheel_cache=wheel_cache
  File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 197, in from_line
    wheel.filename
UnsupportedWheel: MarkupSafe-1.1.0-cp27-cp27m-manylinux1_x86_64.whl is not a supported wheel on this platform.

we get - is not a supported wheel on this platform.

but the Linux versions should be fit to this pkg

we verify by uname -a

 uname -a

Linux Master 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

 more /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)

python --version
Python 2.7.5

so what is happened here ?

Judy
  • 1,595
  • 6
  • 19
  • 41

1 Answers1

0

This could be happened due to out-of-date pip.

Try python -m pip install --upgrade pip

Vencat
  • 1,272
  • 11
  • 36
  • little strange because we installed the latest version - python-pip-7.1.0-1.el7.noarch.rpm – Judy Dec 05 '18 at 17:01
  • `pip 7.1.0` is certainly not the latest version. The current latest version is [18.1](https://pypi.org/project/pip/18.1/). – phd Dec 05 '18 at 17:56