Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # for dep in $(pip show somepackage | grep Requires | sed 's/Requires: //g; s/,//g') ; do pip uninstall -y $dep ; done
  4.  
  5. for dep in $(pip show "$1" | grep Requires | sed 's/Requires: //g; s/,//g') ; do
  6. pip uninstall -y $dep
  7. done
  8. pip uninstall -y "$1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement