You can install and use the pip-autoremove utility to remove a package plus unused dependencies.
# install pip-autoremove
pip install pip-autoremove
# remove "somepackage" plus its dependencies:
pip-autoremove somepackage -y
More Related Contents:
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- How to install pip with Python 3?
- Can’t install new packages for Python (Python 3.9.0, Windows 10)
- Using hyphen/dash in python repository name and package name
- pip install . creates only the dist-info not the package
- Package (Python PIL/Pillow) installed but I can’t import it
- PyCharm: ImportError no module named X?
- pip fails to install packages from requirements.txt
- TensorFlow not found using pip
- Windows Scipy Install: No Lapack/Blas Resources Found
- How do I update/upgrade pip itself from inside my virtual environment?
- How to install Python MySQLdb module using pip?
- libxml install error using pip
- When would the -e, –editable option be useful with pip install?
- pip or pip3 to install packages for Python 3?
- How to get “python -m venv” to directly install latest pip version
- Access data in package subdirectory [duplicate]
- How to find a Python package’s dependencies
- zsh: no matches found: requests[security]
- pip install dependency links
- How are Pipfile and Pipfile.lock used?
- Pip freeze vs. pip list
- pip/easy_install failure: failed to create process
- Where does pip install its packages?
- pip with embedded python
- Flask(‘application’) versus Flask(__name__)
- can’t pip install mysql-python
- Install Beautiful Soup using pip [duplicate]
- How can I host my own private conda repository?
- Namespace vs regular package