2 回答
TA贡献1801条经验 获得超8个赞
我找到了这个命令:
$ mypython
...
>>> from setuptools.pep425tags import get_supported
>>> for t in get_supported(): print(str(t))
...
这显示了用于匹配支持的包的元组的完整列表。使用这些信息,我能够将它与 PyPI 下载进行比较,并发现我已经构建了支持 UCS4 的 MacOS Python(这在 Linux 上很常见),其中相对较少的 PyPI 包为 MacOS 提供了广泛的 unicode 二进制轮。
我没有特别喜欢 UCS4 的理由,所以我将我的 MacOS 版本切换到 UCS2 并且它起作用了!
希望这些信息对其他人有帮助。
TA贡献1796条经验 获得超4个赞
关于标签,在最新版本的pip 中,可以使用以下命令获得与当前运行的Python解释器兼容的完整列表:debug
$ path/to/pythonX.Y -m pip debug --verbose
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
[...]
Compatible tags: 87
cp38-cp38-manylinux2014_x86_64
cp38-cp38-manylinux2010_x86_64
cp38-cp38-manylinux1_x86_64
cp38-cp38-linux_x86_64
cp38-abi3-manylinux2014_x86_64
cp38-abi3-manylinux2010_x86_64
cp38-abi3-manylinux1_x86_64
cp38-abi3-linux_x86_64
cp38-none-manylinux2014_x86_64
cp38-none-manylinux2010_x86_64
cp38-none-manylinux1_x86_64
cp38-none-linux_x86_64
cp37-abi3-manylinux2014_x86_64
cp37-abi3-manylinux2010_x86_64
cp37-abi3-manylinux1_x86_64
cp37-abi3-linux_x86_64
[...]
添加回答
举报
