首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >PIP安装程序中manylinux1与manylinux2020轮子文件的差异

PIP安装程序中manylinux1与manylinux2020轮子文件的差异
EN

Stack Overflow用户
提问于 2020-05-14 19:58:55
回答 1查看 3.3K关注 0票数 3

我在Python中遇到了一个有线问题,这个问题是cryptography-2.9.2-cp35-abi3-manylinux2010_x86_64.whl不能在SLES OS上工作。

当我将软件包从requirements.txt下载到本地文件夹dist-packages时,我将CI/CD添加到我的存储库中。Jenkins Slave机器在RedHat Linux上运行。因此,它是用这个文件cryptography-2.9.2-cp35-abi3-manylinux2010_x86_64.whl下载的,而我的运行时是在SLESOS11中,这需要cryptography-2.9.2-cp35-abi3-manylinux1_x86_64.whl

这个特定的依赖项cryptography-2.9.2-cp35-abi3-manylinux2010_x86_64.whl是从RedHat下载的,当我将其重新分发到SLES OS时,此依赖项失败,并显示以下错误。

代码语言:javascript
运行
复制
 ERROR: Could not find a version that satisfies the requirement cryptography>=2.1.4 (from azure-identity->-r requirements.txt (line 2)) (from versions: none)
    ERROR: No matching distribution found for cryptography>=2.1.4 (from azure-identity->-r requirements.txt (line 2))

如果我将依赖项名称从cryptography-2.9.2-cp35-abi3-manylinux2010_x86_64.whl更改为cryptography-2.9.2-cp35-abi3-manylinux1_x86_64.whl,它在SLES OS机器上可以正常工作。

当我检入PyPI https://pypi.org/project/cryptography/#modal-close时(这两个文件大小相同,但哈希值不同)

我想了解一下python包中manylinux1_x86_64和manylinux2010_x86_64的区别。

提前谢谢。

EN

回答 1

Stack Overflow用户

发布于 2020-07-28 23:10:52

根据本文:manylinux tag,manylinux2010意味着它需要pip >= 19.0

代码语言:javascript
运行
复制
sudo python3 -m pip install --upgrade pip

可能会有所帮助。

manylinux项目的目标是提供一种在Linux上以轮子形式分发二进制Python扩展的便捷方法。这一努力产生了PEP 513PEP 571定义了manylinux2010_x86_64manylinux2010_i686平台标签,从而进一步增强了and。

代码语言:javascript
运行
复制
╔════════════════╦══════════════════════════════════╗
║  manylinux tag ║ Client-side pip version required ║
╠════════════════╬══════════════════════════════════╣
║  manylinux2014 ║ pip >= 19.3                      ║
║  manylinux2010 ║ pip >= 19.0                      ║
║  manylinux1    ║ pip >= 8.1.0                     ║
╚════════════════╩══════════════════════════════════╝
票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61796811

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档