本文介绍了无法使用麻线将二进制轮上传到 pypi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过 github 操作在 Pypi 上为 linux 和 windows 上传一个包
I am trying to upload a package on Pypi for linux and windows from github actions
使用 linux 我得到这个结果
with linux I get this result
Binary wheel 'xxx-cp36-cp36m-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.
在windows安装过程中
during windows installation
InvalidDistribution: Cannot find file (or expand pattern): 'dist/*'
上传代码是
python setup.py sdist bdist_wheel
twine upload dist/* --verbose
任何想法如何上传 Linux 和 Windows 的发行版?
Any ideas how to upload distributions for linux and windows?
推荐答案
您无法将 linux_*.whl
轮上传到 PyPI(原因 这里).
You cannot upload a linux_*.whl
wheel to PyPI (reasons here).
您需要通过manylinux
项目 和 auditwheel
工具.
You'll need to convert this platform-specific wheel into a manylinux wheel via the manylinux
project and the auditwheel
tool.
这篇关于无法使用麻线将二进制轮上传到 pypi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!