python - PyPi 问题 - 上传失败 (401) : You must be identified to edit package information

标签 python pypi

我遇到了类似于 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/

相关文章:

python - 无法导入模块 ANTLR MyGrammarLexer 和 MyGrammarParser

python - 如何使用 Python 自动测试更新的依赖项?

python - 无法使用 pip 在 PyPI 中搜索包

python - 如何在 Python 模块中公开函数?

python - 查找所有使用 easy_install/pip 安装的软件包?

python - 在 databricks 集群中使用 init 脚本安装 python 包

python - Pyro4 和普通的旧数据对象

python - 对 pandas/matplotlib 条形图中的条形顺序进行排序

python - 将其他 Cython 绑定(bind)对象传递给 Cython 绑定(bind)对象上的方法

python - 使用 pip 或其他工具过滤搜索事件或成熟 PyPI 包的更简单方法?