pip-autoremove
pip-autoremove copied to clipboard
Does it have a feature to remove stale dependencies of already uninstalled packages?
Does it have a feature to remove stale dependencies of already uninstalled packages?
I couldn't see that option, but if you reinstall then use autoremove it removed the dependencies fine.
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.