Remove a package and its unused dependencies
Project description
Remove a package and its unused dependencies.
Quickstart
First, install pip-autoremove:
$ pip install pip-autoremove
Install a package which has dependencies, e.g. Flask:
$ pip install Flask ... Successfully installed Flask Werkzeug Jinja2 itsdangerous markupsafe Cleaning up...
Uninstall it and all its unused dependencies:
$ pip-autoremove Flask -y Flask 0.10.1 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) Werkzeug 0.9.6 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) Jinja2 2.7.3 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) MarkupSafe 0.23 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) itsdangerous 0.24 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) Uninstalling MarkupSafe: Successfully uninstalled MarkupSafe Uninstalling Jinja2: Successfully uninstalled Jinja2 Uninstalling itsdangerous: Successfully uninstalled itsdangerous Uninstalling Werkzeug: Successfully uninstalled Werkzeug Uninstalling Flask: Successfully uninstalled Flask
Remove multiple packages and their dependencies at once:
$ pip install Flask Sphinx ... Successfully installed Flask Sphinx Werkzeug Jinja2 itsdangerous Pygments docutils markupsafe Cleaning up...
$ pip-autoremove Flask Sphinx -y Sphinx 1.2.2 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) Jinja2 2.7.3 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) MarkupSafe 0.23 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) Pygments 1.6 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) docutils 0.12 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) Flask 0.10.1 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) Werkzeug 0.9.6 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) Jinja2 2.7.3 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) MarkupSafe 0.23 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) itsdangerous 0.24 (/tmp/pip-autoremove/.venv/lib/python2.7/site-packages) ...
Usage
Usage: pip-autoremove [OPTION]... [NAME]... Options: --version show program's version number and exit -h, --help show this help message and exit -l, --list list unused dependencies, but don't uninstall them. -L, --leaves list leaves (packages which are not used by any others). -y, --yes don't ask for confirmation of uninstall deletions.
Installation
$ pip install pip-autoremove
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pip-autoremove-0.8.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pip_autoremove-0.8.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15e4a46c918d8e7e5f8c6781fd19857791afcf69a15a73b436af90f462c0bcd4 |
|
MD5 | 0e23b6997982883cf7dd535975558041 |
|
BLAKE2b-256 | 0a95914d7018b8eb69ba4ed8074668f48b33413220b2536d8cfbff2ad951068f |