Skip to content

Instantly share code, notes, and snippets.

@KarthikVundela
Forked from luiscape/install_packages.sh
Created April 9, 2018 08:30
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 KarthikVundela/45cf220d06ed5da1b2bd0a981dce282e to your computer and use it in GitHub Desktop.
Save KarthikVundela/45cf220d06ed5da1b2bd0a981dce282e to your computer and use it in GitHub Desktop.
Install Python dependency packages from requirements.txt using conda.
#
# Original solution via StackOverflow:
# http://stackoverflow.com/questions/35802939/install-only-available-packages-using-conda-install-yes-file-requirements-t
#
#
# Install via `conda` directly.
# This will fail to install all
# dependencies. If one fails,
# all dependencies will fail to install.
#
conda install --yes --file requirements.txt
#
# To go around issue above, one can
# iterate over all lines in the
# requirements.txt file.
#
while read requirement; do conda install --yes $requirement; done < requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment