Skip to content

Instantly share code, notes, and snippets.

@AlexBaranowski
Created January 15, 2018 20:14
Show Gist options
  • Save AlexBaranowski/6e8147a7a7d7888f503b1c41858b956e to your computer and use it in GitHub Desktop.
Save AlexBaranowski/6e8147a7a7d7888f503b1c41858b956e to your computer and use it in GitHub Desktop.
Remove not used packages from pip requirements.txt
#!/bin/bash
diff requirements.txt requirements.txt2 | awk '{print $2}' | xargs pip uninstall -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment