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



我们正在安装pkg:MarkupSafe-1.1.0-cp27-cp27m-manylinux1-x86_64whl通过管道

我们从-下载pkghttps://pypi.org/project/MarkupSafe/#files

我们有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

那么这里发生了什么?

这可能是由于pip过期。

尝试python -m pip install --upgrade pip

相关内容

  • 没有找到相关文章

最新更新