Install extras with conda

一世执手 提交于 2019-12-24 00:37:38

问题


With pip we can install subpackages using square brackets. For example with Apache Airflow:

pip install airflow[all]

Is there something similar in conda or do I have to use pip for packages containing sub-packages?


回答1:


It appears that the issue has been raised but not resolved




回答2:


There is no direct equivalent of this in conda

Closest alternative would be to create your own matapackages that describe list of dependencies. Although this is not exactly what pip provides here.

Another option is to use conda outputs that allows to explicitly specifies packaging steps.

On top of all, please visit this Github page and upvote "Optional groups of dependencies" feature request https://github.com/conda/conda/issues/7502 If "Optional groups of dependencies" for conda are implemented, it would be a direct equivalent for that existing pip functionality.



来源:https://stackoverflow.com/questions/42587385/install-extras-with-conda

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