0
0

More than 3 years have passed since last update.

【Python】PyPIエラー対応 User (username) has no verified email addressesの対処法

Last updated at Posted at 2019-02-25

発生したエラー

twineを使って、PythonパッケージをPyPIに登録しようとしたところ、

HTTPError: 400 Client Error: User '(username)' has no verified email addresses

のエラーとなる。

$ twine upload --repository pypi dist/*
Enter your username: (username)
Enter your password: 
Uploading distributions to https://upload.pypi.org/legacy/
Uploading (packagename)-1.0.0-py3-none-any.whl
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11.4k/11.4k [00:01<00:00, 9.14kB/s]
NOTE: Try --verbose to see response content.
HTTPError: 400 Client Error: User '(username)' has no verified email addresses, 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/
$

対処方法

原因は、PyPIアカウント登録時のメール認証実施漏れ。

PyPIアカウント登録時に登録したメールアドレスに、PyPIからのメールが届いているはずなので、そのメール本文のclick this link to verify your email addressをクリックしてください。

このメール認証を行わなくてもPyPIのサイトへのログイン等はできるのですが、パッケージを登録しようとすると上記のエラーになってしまいますので、忘れずにメール認証しておいてください。

環境

  • Python 3.6.6
  • twine 1.13.0
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0