PyPi issues - Upload failed (401): You must be identified to edit package information [duplicate]

…衆ロ難τιáo~ 提交于 2019-12-18 10:58:33

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/3773613/pypi-issues-upload-failed-401-you-must-be-identified-to-edit-package-inform

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!