Anaconda: Install specific packages from specific channels using environment.yml

对着背影说爱祢 提交于 2019-12-12 07:14:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!