pip-autoremove icon indicating copy to clipboard operation
pip-autoremove copied to clipboard

Does it have a feature to remove stale dependencies of already uninstalled packages?

Open mystiquewolf opened this issue 5 years ago • 2 comments

Does it have a feature to remove stale dependencies of already uninstalled packages?

mystiquewolf avatar Feb 06 '21 13:02 mystiquewolf

I couldn't see that option, but if you reinstall then use autoremove it removed the dependencies fine.

danmac avatar Feb 13 '21 09:02 danmac

Short answer is no. Those packages would be seen as "leaf" packages and pip-autoremove would assume you installed them on purpose. You can get a list of all your leaf packages by doing pip-autoremove --leaves and then remove them that way or (as @danmac suggested) reinstall the package you actually wanted to remove all the dependancies of and use pip-autoremove to remove it for real.

tresni avatar Sep 16 '21 00:09 tresni