Skip to content

Instantly share code, notes, and snippets.

@rodrigobertin
Last active March 22, 2020 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodrigobertin/c04fe2a08d0cca70a6c459d0a4793753 to your computer and use it in GitHub Desktop.
Save rodrigobertin/c04fe2a08d0cca70a6c459d0a4793753 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
export CURRENT=$(pwd)
cd ${CURRENT}
echo ""
echo "---------------------------------------->"
echo "Current directory ${CURRENT}"
echo "---------------------------------------->"
echo ""
source _env/bin/activate
echo ""
echo "---------------------------------------->"
echo 'Instalar paquetes'
echo "---------------------------------------->"
echo ""
pip install -r req.txt
echo ""
echo "---------------------------------------->"
echo 'Eliminar paquetes'
echo "---------------------------------------->"
echo ""
pip freeze | grep -v -f req.txt - | xargs pip uninstall -y
echo ""
echo "---------------------------------------->"
echo 'Actualización de paquetes finalizadas'
echo "---------------------------------------->"
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment