gpt4 book ai didi

python - pip 无法安装 pkg,因为 - 尽管有 Linux 适配要求,但该平台上不支持 Wheel

转载 作者:太空宇宙 更新时间:2023-11-04 05:12:27 24 4
gpt4 key购买 nike

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

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

那么这里发生了什么?

最佳答案

这可能是由于 pip 过时而发生的。

尝试python -m pip install --upgrade pip

关于python - pip 无法安装 pkg,因为 - 尽管有 Linux 适配要求,但该平台上不支持 Wheel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53636638/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com