pypi upload failed (401)

On a new computer after a fresh installation, I tried to upload a new version of an existing package on the pypi repository. Of course, I have already a username/password and uploaded packages in the past. However, in the source directory, when typing

python setup.py sdist upload

I got the following error message:

Upload failed (401): You must be identified to edit package information

I just forgot to create a special file named .pypirc in the HOME directory with this content:

[pypi]
username:your_username
password:your_password
Please follow and like us:
This entry was posted in Python and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published.