python-2.7 - 注册到 PyPi : basic auth failed

标签 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

知道发生了什么事吗?我到处查看,但关于如何解决此类问题的信息似乎很少。

最佳答案

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

关于python-2.7 - 注册到 PyPi : basic auth failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29350703/

相关文章:

python - 如何将字典转换为嵌套字典?

python - 光标.执行值子字符串不起作用

python - 线程不会调用函数 (Python)

python - Python的distutils可以编译.S(汇编)吗?

python - Distutils 和 shell 扩展

python - 如何使用冗长的 Python 打印函数的开始和结束?

python - __init__.py 的目的是什么?

python-3.x - 在 src 布局中使用 attr 时出现 ModuleNotFoundError

python - 使用自定义前缀安装时如何将 lib 目录添加到 sys.path

python - 构建 MercurialRecipe 在多次导入时中断