Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What is going on with this article?
@shonansurvivors

【Python】PyPIエラー対応 Invalid or non-existent authentication informationの対処法

More than 1 year has passed since last update.

発生したエラー

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

HTTPError: 403 Client Error: Invalid or non-existent authentication information.

のエラーとなる。

$ twine upload --repository pypi dist/*
Enter your username: hogefuga
Enter your password: 
Uploading distributions to https://upload.pypi.org/legacy/
Uploading (yourpackagename)-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: 403 Client Error: Invalid or non-existent authentication information. for url: https://upload.pypi.org/legacy/
$

対処方法

usernameかpasswordが間違っているので、正しいものを入力し直してください。

$ twine upload --repository pypi dist/*
Enter your username: (正しいusername)
Enter your password: (正しいpassword)
Uploading distributions to https://upload.pypi.org/legacy/
Uploading (yourpackagename)-1.0.0-py3-none-any.whl
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11.4k/11.4k [00:01<00:00, 9.14kB/s]
$

無事、パッケージが登録されました。

環境

  • Python 3.6.6
  • twine 1.13.0
2
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
shonansurvivors
SRE/DevOps/AWS勉強中 | JAWS-UG初心者支部運営メンバー

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
2
Help us understand the problem. What is going on with this article?