PyPi问题 - 上传失败(401):必须识别您编辑包信息

时间:2010-09-22 21:02:13

标签: python pypi

我遇到类似于this的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

1 个答案:

答案 0 :(得分:55)

对此的答案似乎不是非特定于Windows的,请尝试一下: accepted answer基本上说,您需要一个文件.pypirc,其中包含以下部分:

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

另外,this is the relevant documentation(约.pypirc):

  

在Windows上,您需要将HOME environ var设置为指向此文件所在的目录。

相关问题