pip无法安装pkg,因为-尽管linux fit要求,但该平台上不支持轮子

时间:2018-12-05 16:27:04

标签: python linux pip redhat

我们正在安装pkg: pip的MarkupSafe-1.1.0-cp27-cp27m-manylinux1_x86_64.whl

我们从-https://pypi.org/project/MarkupSafe/#files

下载pkg

我们有7.2版的Redhat操作系统

如下:

 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.

我们得到-该平台不支持该轮子。

但是Linux版本应该适合此pkg

我们通过 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

那么这里发生了什么?

1 个答案:

答案 0 :(得分:0)

这可能是由于过时的点值造成的。

尝试<div [ngStyle]="{ 'width': 'calc(100% - ' + width + 'px)' }">