Created
June 28, 2018 06:31
-
-
Save HanyRabah/e88421973ee17ee1c7856c47cd65f09f to your computer and use it in GitHub Desktop.
pip – uninstall package with dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
- for dep in $(pip show somepackage | grep Requires | sed 's/Requires: //g; s/,//g') ; do pip uninstall -y $dep ; done | |
- pip uninstall -y somepackage | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment