How to remove a package from Pypi

你离开我真会死。 提交于 2019-11-27 23:25:38
  • Login.
  • Go to your packages.
  • Check the "remove" checkbox for the particular package.
  • Click "Remove" button.

New PYPI Website

After logging to pypi.org,

  1. Go to releases
  2. Click delete on options dropdown
  3. Enter the version number confirm
  4. Click Delete Release to delete the release.





original answer

Login in to pypi, select the required package from Your packages

To delete only a version of the package.

select Remove? check box on the individual package version that you want to delete, and click remove.

To delete the package completely

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. I did that for python-cli-ui, which is replaced by cli-ui

If you want to get fancy you can also:

  • Add a warning printed when setup.py is run
  • or at import time
  • or replace the package by a dummy one that depends on the new name.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!