PyPi 问题 - 上传失败 (401):您必须经过身份验证才能编辑包信息

发布于 2024-09-24 12:46:24 字数 759 浏览 3 评论 0原文

我遇到了与 pypi 类似的问题 这个,除了我正在运行 Windows 并且提到的解决方案页面已关闭。

有谁知道如何解决这个问题?我正在使用Python 2.5。

python setup.py sdist register upload

running register
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
Your selection [default 1]:  1
Username: tschellenbach
Password:
Server response (200): OK
running upload
Submitting dist\django-ogone-1.0.0.zip to http://pypi.python.org/pypi
Upload failed (401): You must be identified to edit package information

Im encountering a problem with pypi similar to this one, except that I'm running windows and the mentioned solution page is down.

Does anyone know how to work around this? I'm using python 2.5.

python setup.py sdist register upload

running register
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
Your selection [default 1]:  1
Username: tschellenbach
Password:
Server response (200): OK
running upload
Submitting dist\django-ogone-1.0.0.zip to http://pypi.python.org/pypi
Upload failed (401): You must be identified to edit package information

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悍妇囚夫 2024-10-01 12:46:24

这个问题的答案似乎不是非常非 Windows 特定的,请尝试一下:
接受的答案 它基本上说,您需要一个包含以下部分的文件 .pypirc

[server-login]
username:tschellenbach
password:******** (the real one)

另外,这是相关文档(关于.pypirc):

在 Windows 上,您需要设置一个 HOME 环境变量来指向该文件所在的目录。

the answer for this seems not very non-windows-specific, give it a try:
accepted answer It says basically, that you need a file .pypirc with the following section:

[server-login]
username:tschellenbach
password:******** (the real one)

also, this is the relevant documentation (about .pypirc):

On windows, an you’ll need to set a HOME environ var to point to the directory where this file lives.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文