相关疑难解决方法(0)

从命令行上传时如何覆盖pypi包?

我想在某些情况下自动化上传过程错误python setup.py upload失败,因为pypi服务器已经上传了保存版本.

如何从脚本强制上传(我知道我可以使用Web界面删除旧版本).

distutils pypi distutils2

21
推荐指数
2
解决办法
6507
查看次数

如何用twine上传新版本的项目到pypi?

我已将我的python包上传到pypi.但现在我制作了我的包的新版本,需要上传它.我试着在第一次上传包时做了同样的进展.但是给我这个错误:

HTTPError: 400 Client Error: File already exists. See https://pypi.org/help/#file-name-reuse for url: https://upload.pypi.org/legacy
Run Code Online (Sandbox Code Playgroud)

现在,如何上传新版本没有任何错误?!

python package pypi python-3.x twine

15
推荐指数
2
解决办法
3068
查看次数

TestPyPI / test.pipy.org 上传同名、同版本的项目导致出现“This filename has already beused”错误

TLDR:从 TestPyPI (test.pypi.org) 删除项目后出现错误并想使用相同的项目名称和版本重新上传,该怎么办?

答: PyPI和TestPyPI切换到Warehouse后不能使用相同的项目名称和版本。将 setup.py 版本从“0.0.1”升级到“0.0.2”后成功上传到 TestPyPI

为什么发新帖:上述条目的标题没有详细反映问题,导致很难找到


描述:

在将其发布到 PyPI 之前,我正在测试使用 TestPyPI 编写的包。但是,我发现当我从 test.pypi.org pip install 时出现一些错误:

pip install -i https://test.pypi.org/simple/ PACKAGE_NAME
Run Code Online (Sandbox Code Playgroud)

我认为我在打包过程中犯了错误并想要重新上传我的包,因此我使用“管理”按钮从 test.pypi.org 中删除了我的包。 在此输入图像描述

但是,现在当我尝试像以前一样上传调整后的包时:

twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Run Code Online (Sandbox Code Playgroud)

我收到“文件名已被使用”错误。

HTTPError: 400 Bad Request from https://test.pypi.org/legacy/
This filename has already been used, use a different version. See https://test.pypi.org/help/#file-name-reuse for more information.
Run Code Online (Sandbox Code Playgroud)

我点击链接并阅读:

PyPI does not allow for a filename to be reused, even once a project has been deleted and …
Run Code Online (Sandbox Code Playgroud)

pypi

11
推荐指数
0
解决办法
1434
查看次数

标签 统计

pypi ×3

distutils ×1

distutils2 ×1

package ×1

python ×1

python-3.x ×1

twine ×1