我遇到了类似于 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
最佳答案
这个问题的答案似乎不是特定于 Windows 的,试一试:
accepted answer它基本上说,您需要一个包含以下部分的文件 .pypirc
:
[server-login] username:tschellenbach password:******** (the real one)
另外,this is the relevant documentation (关于.pypirc
):
On windows, an you’ll need to set a HOME environ var to point to the directory where this file lives.
关于python - PyPi 问题 - 上传失败 (401) : You must be identified to edit package information,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3773613/