且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法使用Twine上传到PyPi

更新时间:2023-09-12 10:18:28

我使用的帐户似乎出现某种错误.以下步骤为我修复了此问题:

It looks like some sort of error with the account I was using. The following steps fixed it for me:

  1. 创建一个新帐户
  2. 使用twine upload dist/*
  3. 用新帐户上传软件包
  4. 以所有者身份将以前的帐户(您最初想与之一起上传)添加到软件包中
  1. Create a new account
  2. Upload the package with the new account with twine upload dist/*
  3. Add the previous account (that you originally wanted to upload with) to the package as an owner

还请注意,测试pypi服务器--repository-url https://test.pypi.org/legacy/要求创建与实时服务器--repository-url https://upload.pypi.org/legacy/

Also be aware that the test pypi server --repository-url https://test.pypi.org/legacy/, requires a different account to be created from the live server --repository-url https://upload.pypi.org/legacy/