Anaconda: Install specific packages from specific channels using environment.yml : <p>does anyone know how to construct an Anaconda environment.yml file so that it installs specific packages from specific channels?</p>

<p>Something like this:</p>

<pre><code>dependencies:
  - numpy
  - pandas
  - package-A from channel Z
  - package-B from channel Y
</code></pre>

<p>All I could find is that you can specify channels using the <strong>channels:</strong> command. But apparently it then grabs the packages from the first channel its available on - but I need some packages from very specific channels (but it exists on multiple ones in different "versions").</p>
