【问题标题】:Binary wheel can't be uploaded on pypi using twine无法使用 twine 将二进制轮子上传到 pypi
【发布时间】:2020-04-14 11:47:40
【问题描述】:

我正在尝试通过 github 操作在 Pypi for linux 和 windows 上上传一个包

使用 linux 我得到了这个结果

Binary wheel 'xxx-cp36-cp36m-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.

windows 安装过程中

InvalidDistribution: Cannot find file (or expand pattern): 'dist/*'

上传的代码是这样的

  python setup.py sdist bdist_wheel
  twine upload dist/* --verbose

任何想法如何上传 linux 和 windows 的发行版?

【问题讨论】:

标签: python pypi twine


【解决方案1】:

您无法将 linux_*.whl 轮子上传到 PyPI(原因 here)。

您需要通过manylinux projectauditwheel tool 将此特定于平台的滚轮转换为manylinux 滚轮。

【讨论】:

    猜你喜欢
    • 2018-03-18
    • 1970-01-01
    • 2019-01-31
    • 1970-01-01
    • 2018-01-27
    • 2017-03-18
    • 2018-07-26
    • 1970-01-01
    • 2018-05-15
    相关资源
    最近更新 更多