Anaconda: Install specific packages from specific channels using environment.yml
Question:
does anyone know how to construct an Anaconda environment.yml file so that it installs specific packages from specific channels?
Something like this:
dependencies:
- numpy
- pandas
- package-A from channel Z
- package-B from channel Y
All I could find is that you can specify channels using the channels: 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”).
Answers:
I saw something like
dependencies:
- chanelname::modulename=X.Y.Z
Update
It now implemented:
https://github.com/conda/conda/issues/7202
Old answer
Be carefull since it doesn’t seemed to be implemented. A channel is, by design, a "space" where depencies are robust. So removing this might break dependencies.
does anyone know how to construct an Anaconda environment.yml file so that it installs specific packages from specific channels?
Something like this:
dependencies:
- numpy
- pandas
- package-A from channel Z
- package-B from channel Y
All I could find is that you can specify channels using the channels: 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”).
I saw something like
dependencies:
- chanelname::modulename=X.Y.Z
Update
It now implemented:
https://github.com/conda/conda/issues/7202
Old answer
Be carefull since it doesn’t seemed to be implemented. A channel is, by design, a "space" where depencies are robust. So removing this might break dependencies.