pip-autoremove
Remove a package and its unused dependencies
What it is and what it does
pip-autoremove is a command-line utility that extends pip's uninstall functionality by automatically detecting and removing unused dependencies when you uninstall a package. When you uninstall a package, pip normally leaves its dependencies behind; this tool walks the dependency tree and removes only those dependencies that are not required by any other installed package. It supports listing unused dependencies without uninstalling them, listing leaf packages (packages not used by others), and batch removal of multiple packages at once.
The tool depends on pip and setuptools for its core functionality. It was last updated in 2021 and is no longer actively maintained, though it remains functional for basic use cases. The codebase supports Python 2.6, 2.7, 3.x, and PyPy according to its classifiers, though real-world compatibility with modern Python versions is unverified.
Use it for:
- Clean up a development environment after uninstalling a major package like Flask or Django that brought in many transitive dependencies.
- Identify and remove leaf packages (packages not used by any other installed package) to reduce environment bloat.
- Batch-uninstall multiple packages and their orphaned dependencies in a single command rather than manually tracking what to remove.
- List unused dependencies before uninstalling to review what would be removed without actually performing the uninstall.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A command-line tool that uninstalls a package and automatically removes its dependencies that are no longer used by any other installed package.
Yes, with conditions. The tool is simple, has low install friction, and solves a real problem for environment cleanup. However, it is abandoned (last release 2021-09-17, no active maintenance), so use it only if you accept that bugs or compatibility issues with newer pip versions will not be fixed. For active projects requiring ongoing support, consider whether a maintained alternative or manual dependency tracking is preferable.
Install
pip-autoremove on PyPI
pip
pip install pip-autoremoveuv
uv add pip-autoremovepoetry
poetry add pip-autoremoveInstalling pip-autoremove
Before you install
Low install friction with pip and setuptools as only runtime dependencies. However, the package is abandoned—last release was 2021-09-17 and last commit 2023-06-29, with no active maintenance despite 628 repository stars.
License in practice
Licensed under Apache License 2.0 (permissive), which allows use, modification, and distribution with minimal restrictions, making it safe to use in most projects without licensing concerns.
Quickstart
$ pip install pip-autoremove
$ pip-autoremove Flask -y
This uninstalls Flask and any of its dependencies that no other installed package depends on.
Verify before relying
- Whether the tool correctly identifies shared dependencies across multiple packages in complex environments.
- Compatibility with modern pip versions and Python 3.10+ (classifiers list Python 3 but do not specify upper bounds).
- Whether the dependency-graph logic handles optional dependencies and extras correctly.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pip, setuptools |
| Maintenance | abandoned — 1,792 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 259,898/month — #8,403 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pip_autoremove-0.10.0-py2.py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pipdeptreepipdeptree displays installed Python packages…
permissive · top 5,000 on PyPI
creosoteCreosote scans your Python project's source…
permissive · top 5,000 on PyPI
snowflake-cli-labsThis package has been renamed and is now a…
permissive · top 15,000 on PyPI
to-requirements.txtAutomatically synchronizes your project's…
permissive · top 15,000 on PyPI
autoflakeautoflake removes unused imports and unused…
permissive · top 5,000 on PyPI
ansible-dev-environmentCreates isolated virtual environments for…
copyleft · top 15,000 on PyPI
yesqayesqa automatically removes unnecessary `#…
permissive · top 15,000 on PyPI
pycleanRemoves Python bytecode files (.pyc) and…
copyleft · top 15,000 on PyPI
pyctProvides command-line and Python utilities for…
permissive · top 15,000 on PyPI
flask-unsignCommand-line tool to decode, brute-force, and…
permissive · top 15,000 on PyPI