Created
April 23, 2012 18:23
-
-
Save bernardobarreto/2472876 to your computer and use it in GitHub Desktop.
(pip) install existent package and save its name from requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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