HTTPError: 400 client Error: user 'x' has no verified email addresses while pushing python package to pypi

HTTPError: 400 client Error: user 'x' has no verified email addresses while pushing python package to pypi

HTTPError:400 客户端错误:用户 'sampleuser' 没有经过验证的电子邮件地址 s,在 PyPI 上注册一个新项目之前,请至少验证一个地址。 有关详细信息,请参阅 https://pypi.org/help/#verified-email。 url: https:/ /upload.pypi.org/legacy/

当我运行“twine upload dist/*”命令

时出现上述错误

我在尝试更新已在 PyPi 上的存储库时遇到了同样的问题。

但我在我的个人资料页面上找到了这个link,点击它我阅读了

we are experiencing issues with pypi.org and the upload.pypi.org endpoint. we're actively working to resolve the issue and will update here as we're able.

好的,我想通了:

您需要登录 https://pypi.org/ instead of the old https://pypi.python.org/pypi

https://pypi.org 在顶部显示 "pre-production" 警告,但这并不重要。登录到您的帐户,转到帐户设置,然后验证您的电子邮件。旧站点无法检查您的电子邮件是否已验证。