Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mystiquewolf opened this issue Feb 6, 2021 · 2 comments

Comments

@mystiquewolf
Copy link

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

@danmac
Copy link

danmac commented Feb 13, 2021

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

@tresni
Copy link
Contributor

tresni commented Sep 16, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants