PyPi 问题 - 上传失败 (401):您必须被识别才能编辑包信息 [英] PyPi issues - Upload failed (401): You must be identified to edit package information

查看:26
本文介绍了PyPi 问题 - 上传失败 (401):您必须被识别才能编辑包信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了类似于 this 一个,除了我正在运行 Windows 并且提到的解决方案页面已关闭.

有谁知道如何解决这个问题?我使用的是 python 2.5.

python setup.py sdist 注册上传运行寄存器我们需要知道你是谁,所以请选择:1. 使用您现有的登录名,2.注册为新用户,3. 让服务器为您生成一个新密码(并通过电子邮件发送给您),或4. 退出您的选择 [默认 1]: 1用户名:tschellenbach密码:服务器响应(200):好的运行上传提交 dist\django-ogone-1.0.0.zip 到 http://pypi.python.org/pypi上传失败(401):您必须被识别才能编辑包信息

解决方案

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

<前>[服务器登录]用户名:切伦巴赫密码:********(真实的)

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

<块引用>

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

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

解决方案

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.

这篇关于PyPi 问题 - 上传失败 (401):您必须被识别才能编辑包信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆