python - 奇怪的 PyPI 身份验证行为

标签 python distribution distutils pypi

我正在尝试将我的包上传到 PyPI。它要求我进行身份识别,我做了,它给出了一个 OK 响应(除非身份识别正确,否则不会发生),但随后它声称我没有识别!为什么?

[...]
removing 'build\bdist.win32\egg' (and everything under it)
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: coolRR
Password:
Server response (200): OK
running upload
Submitting dist\garlicsim-0.1.zip to http://pypi.python.org/pypi
Upload failed (401): You must be identified to edit package information
removing 'build' (and everything under it)
error: garlicsim-0.1: No such file or directory

最佳答案

您使用的是旧版本的 Python(因此使用了 Distutils)。此错误已由 Tarek Ziade 在 r68415 2009-01-09 中修复。尝试使用之后发布的任何Python 2.x版本进行上传。

关于python - 奇怪的 PyPI 身份验证行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1750186/

相关文章:

image-processing - 试图理解高斯模糊在 matlab 中的实现

python - 如何在 Python egg 中分发/访问数据文件?

python-2.7 - graphlab-create 2.1安装无法卸载distutils安装的项目 'certifi'

python - 如果元素已经存在于列表中,如何用数字增加列表中的字符串

python - 使用 `With` 标签反转 Django 模板中的 bool 值?

zip - Gradle - 从依赖的 jar 中提取文件

python - 如何估计噪声层后面的高斯分布?

python - 如何为旧的 python 版本安装 python-distutils

python - 在 Python 中使用 Lambda 过滤数据框

python - 将 python 脚本输出到文本文件