注册到PyPi:基本身份验证失败

时间:2015-03-30 15:53:19

标签: python-2.7 distutils setup.py pypi cheeseshop

我无法弄清楚如何注册我的项目。我可以在https://testpypi.python.org/pypi正常登录,但在我的.pypirc上使用相同的凭据不起作用。

.pypirc

[distutils]
index-servers=
    test

[test]
repository = https://testpypi.python.org/pypi
username = <username>
password = <password>

<username><password>将替换为我在testpypi上手动登录时使用的凭据。

然后我尝试注册我的项目:

python setup.py register -r test

输出

running register
running egg_info
writing websocket_server.egg-info/PKG-INFO
writing top-level names to websocket_server.egg-info/top_level.txt
writing dependency_links to websocket_server.egg-info/dependency_links.txt
reading manifest file 'websocket_server.egg-info/SOURCES.txt'
writing manifest file 'websocket_server.egg-info/SOURCES.txt'
running check
Registering myproject to https://testpypi.python.org/pypi
Server response (401): basic auth failed

知道发生了什么事吗?我到处寻找,但似乎很少有关于如何解决这些问题的信息。

1 个答案:

答案 0 :(得分:5)

您需要点击电子邮件中的链接完成注册。

相关问题