title: Bash Script to Conda Install requirements.txt with PIP follow-up
body: <p>When installing a requirements.txt file for a Django app on a linux server I can run:</p>
  
  <pre><code>conda install --yes --file requirements.txt
  </code></pre>
  
  <p>This will crash if any of the packages are not available through Conda (<code>PackageNotFoundError</code>).  This bash one liner is a cool way to go through the requirements.txt file one line at a time <a href="https://gist.github.com/luiscape/19d2d73a8c7b59411a2fb73a697f5ed4" rel="noreferrer">source</a>:</p>
  
  <pre><code>while read requirement; do conda install --yes $requirement; done &lt; requirements.txt
  </code></pre>
  
  <p>This installs all of the packages that are available through Conda without crashing on the first missing package.  However, what I would like to is track the packages that fail by capturing the output from Conda and if there is a <code>PackageNotFoundError</code> then run pip install on the package.</p>
  
  <p>I'm not great with bash, so hoping someone can suggest a hack.  Another solution could be to just write out a new text file called <code>pip-requirements.txt</code> with the requirements that fail.  </p>