Search code examples
packagepypiuploading

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


HTTPError: 400 Client Error: User 'sampleuser' has no verified email addresse s, please verify at least one address before registering a new project on PyPI. See https://pypi.org/help/#verified-email for more information. for url: https:/ /upload.pypi.org/legacy/

The above error I am getting when I run " twine upload dist/* " command


Solution

  • Alright, I figured out:

    You need to login to https://pypi.org/ instead of the old https://pypi.python.org/pypi.

    https://pypi.org shows a "pre-production" warning on top, but that doesn't matter. Login to your account, go to account setting, and verify your email. The old site doesn't have a way to check whether your email is verified or not.