Skip to content

MrMarvel/pip3-autoremove

Repository files navigation

pip3-autoremove

image image image

This project has been rewritten from scratch to support new importlib implementation for python 3.10+.

Remove a package and its unused dependencies.
Supports Python3 and Python2.7(at least old builds).

This version also can remove packages listed in file like 'requirements.txt'.

Special Feature!

You can list and remove packages including their optional dependencies!

Usage:

pip-autoremove -f -e to check leaf packages including extra packages. Helps with managing packages like jupyterlab.

pip-autoremove -y -e jupyterlab to remove packages including their extra packages (recursive).

How to install

  • How to install pip3-autoremove for Python:
sudo pip install pip3-autoremove

Usage

pip-autoremove packages-to-uninstall
pip3-autoremove packages-to-uninstall
pip-autoremove -r requirements.txt
py -m pip_autoremove -ef

To remove the globally installed package, add "sudo" before the pip-autoremove command.

⭐ Support

You can support the project by giving a ⭐ to this repository (top right of this page).

Star History Chart

About

Remove a package and its unused dependencies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published