Skip to content

Instantly share code, notes, and snippets.

@nikitalarionov
Created May 1, 2018 14:00
Show Gist options
  • Save nikitalarionov/aa5d87f7497599411388381d9610105d to your computer and use it in GitHub Desktop.
Save nikitalarionov/aa5d87f7497599411388381d9610105d to your computer and use it in GitHub Desktop.
Shell script to install pip dependencies
pips() {
local pkg=$1
if [ -z "$1" ]; then
echo "usage: pips <pkg name>"
return 1
fi
local _ins="pip install $pkg"
eval $_ins
pip freeze | grep $pkg -i >> requirements.txt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment