VocabReminder
Easily build a great vocabulary without studying! Now on the App Store!
Click here for more info about the app

How to Fix Pypi Upload failed (403): Invalid or non-existent authentication information.

       

If you run into authentication failure when trying to upload packages

Submitting dist/<package name> to https://upload.pypi.org/legacy/
Upload failed (403): Invalid or non-existent authentication information.
error: Upload failed (403): Invalid or non-existent authentication information.

You can try adding a ~/.pypirc file your home directory with a [server-login] entry

[server-login]
repository: https://pypi.python.org/pypi
username: yourusernamehere
password: yourpasswordhere

The documentation on Python's site seems to be wrong and the error messages from the command line are not very helpful and somewhat misleading.

Tagged w/ #python #debugging #command line #packaging