Skip to content

Instantly share code, notes, and snippets.

@bernardobarreto
Created April 23, 2012 18:23
Show Gist options
  • Save bernardobarreto/2472876 to your computer and use it in GitHub Desktop.
Save bernardobarreto/2472876 to your computer and use it in GitHub Desktop.
(pip) install existent package and save its name from requirements.txt
# this will try to install each package from requirements.txt
# if it succeed it'll save the package name in the existent.txt file.
# by bernardofire
while read line
do
pip install $line;
pip freeze | grep $line && echo $line >> existent.txt;
done < requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment