gpt4 book ai didi

python - Pypi 注册和更新

转载 作者:行者123 更新时间:2023-11-28 21:21:54 38 4
gpt4 key购买 nike

我有一个在 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 时,系统会再次要求您提供凭据。

关于python - Pypi 注册和更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20551104/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com