我有一个在Pypi上注册的包。最近我做了一个更新,希望将版本从0.6.1增加到0.7.0。现在,如果我运行python setup.py sdist upload
,我会得到一个错误:Upload failed (401): Incorrect password
。
我想我可能需要再次注册,但遇到了类似的故障:
python setup.py register
...
Server response (401): basic auth failed
当我尝试注册时,它不会问我正常的问题:
We need to know who you are, so please choose either:
1. use your existing login,
2. register as a new user,
3. have the server generate a new password for you (and email it to you), or
4. quit
我在文档或任何其他在线帮助方面都没有运气。我希望我不需要再次注册包,但我不知道如何提供密码,所以sdist upload
可以工作。
我已经通读了以下内容,但没有成功:
http://guide.python-distribute.org/contributing.html
http://guide.python-distribute.org/quickstart.html
https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
这很有帮助,但仍然没有让我找到解决方案:
http://peterdowns.com/posts/first-time-with-pypi.html
有什么建议吗?
查看~/.pypirc。如果您的凭据发生了更改,请更新它们或删除文件。当您运行python setup.py register
时,系统将再次要求您提供凭据。