Wheel 文件:protobuf-3.4.0-py2.py3-none-any.whl 中 "none-any" 的含义是什么

Wheel files : What is the meaning of "none-any" in protobuf-3.4.0-py2.py3-none-any.whl

我使用 pip 为 numpy 获取 .whl 文件

pip wheel --wheel-dir=./ numpy

我有 numpy-1.13.3-cp27-cp27mu-linux_armv7l.whl 因为我使用的是 ARM 平台,但是当 运行 pip for protobuf

pip wheel --wheel-dir=./ protobuf

我得到了protobuf-3.4.0-py2.py3-none-any.whl

所以,为什么 linux_armv7l 不像 numpy 的情况,我没有改变机器并搜索了那个差异但没有信息。

感谢您的建议。

让我们按组件拆分包名称:

  • numpy — 包名
  • 1.13.3 — 软件包版本
  • cp27 — 该包被编译为与此版本的 Python
  • 一起使用
  • cp27mu — 编译标志
  • linux — 操作系统
  • armv7l — 处理器架构

这意味着包 numpy 包含用 C 编写并为特定处理器编译的二进制扩展,OS 和 Python 版本。

以下包为纯Python:

  • protobuf — 名称
  • 3.4.0 — 版本
  • py2.py3 — 该包以高度可移植的方式编写,适用于 Python
  • 的两个主要版本
  • none — 不是 OS 特定的
  • any — 适用于 运行 任何处理器架构

车轮文件名为 {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl

分布

发行版名称,例如'django', 'pyramid'.

版本

分发版本,例如1.0.

构建标签

可选内部版本号。必须以数字开头。如果两个轮子具有相同的版本,则打破平局。如果未指定,则排序为空字符串,否则排序 初始数字为数字,其余数字按字典顺序排列。

语言实现和版本标签

例如'py27', 'py2', 'py3'.

abi 标签

例如'cp33m', 'abi3', 'none'.

平台标签

例如'linux_x86_64', 'any'.

reference is here.