不应该是:twine upload --repository-url https://test.pypi.org/legacy/ dist/*
而是:twine upload --repository-url upload.pypi.org · PyPI dist/*
我也遇到了同样的问题,但是通过以这种方式键入命令,我的问题得到了解决。
不应该是:twine upload --repository-url https://test.pypi.org/legacy/ dist/*
而是:twine upload --repository-url upload.pypi.org · PyPI dist/*
我也遇到了同样的问题,但是通过以这种方式键入命令,我的问题得到了解决。