[英]How to remove a package from Pypi
How do I remove a package from Pypi? 如何从Pypi中删除包裹?
I uploaded a package to Pypi several months ago. 几个月前我上传了一个包给Pypi。 The package is now obsolete and I'd like to formally remove it. 包裹现在已经过时了,我想正式删除它。 I cannot find any documentation on how to remove my package. 我找不到有关如何删除我的包的任何文档。
delete
on options dropdown 单击选项下拉列表上的delete
Delete Release
to delete the release. 单击“ Delete Release
以删除版本。 Login in to pypi , select the required package from Your packages
登录pypi ,从Your packages
选择所需的包
select Remove?
选择Remove?
check box on the individual package version that you want to delete, and click remove. 单击要删除的单个程序包版本上的复选框,然后单击“删除”。
Scroll down until you see the red box saying Do NOT use this button and click Remove this project completely and on the next page, confirm your action. 向下滚动,直到看到红色框说“ 不要使用此按钮”并单击“完全删除此项目”,然后在下一页上确认您的操作。 Don't forget that, there is no undo option . 不要忘记,没有撤消选项 。
This is not a really good idea, because all users of the previous package will see their install fails. 这不是一个好主意,因为前一个软件包的所有用户都会看到他们的安装失败。
If you want to deprecate a package, what you can do is publish a last release with a README pointing to the new package. 如果要弃用程序包,可以执行的操作是使用指向新程序包的README发布最后一个发行版。 I did that for python-cli-ui , which is replaced by cli-ui
我为python-cli-ui做了那个,它被cli-ui
取代
If you want to get fancy you can also: 如果你想获得幻想,你也可以:
setup.py
is run 运行setup.py
时添加警告
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.