pip-autoremove
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
Copyright 2014 invl
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Metadata
Release files for pip-autoremove 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pip-autoremove-0.10.0.tar.gz | 4.5 kB | Without provenance | Details for pip-autoremove-0.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pip_autoremove-0.10.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pip_autoremove-0.10.0-py2.py3-none-any.whl |
Total release size: 9.5 kB
Release files / pip-autoremove-0.10.0.tar.gz
| Download URL | pip-autoremove-0.10.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1328c6f6ef54b1ea51dd4dd78199d7f8b27c2344e9517fbb4f89edf3bfbb32ba
|
|
BLAKE2b-256 checksum How to use checksums |
9ed8c6d74dc649b064d70bd7a6cb022f185f2c49d771ffb3a23d9dae57cea9ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
|
Release files / pip_autoremove-0.10.0-py2.py3-none-any.whl
| Download URL | pip_autoremove-0.10.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
093c7d9d73c66c191cbaac159bf32a0b2e7cdbc108f1935dacb5d5e09bee9eca
|
|
BLAKE2b-256 checksum How to use checksums |
813307306f6de85b42ae5a8db4b0bf6abd447c699d3902998a7f873e6bce6c2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
|
Security for pip-autoremove 0.10.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.