Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Install Python dependency packages from requirements.txt using conda.
# Original solution via StackOverflow:
# 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

brando90 commented Oct 7, 2017

why do u need the second one?

What do you mean with the "second one"? The second command? The second parameter?
Why line 19 is used is described in the comments above it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment