问题
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").
回答1:
I saw something like
dependencies:
- chanelname::modulename=X.Y.Z
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 depencies.
来源:https://stackoverflow.com/questions/47887224/anaconda-install-specific-packages-from-specific-channels-using-environment-yml