问题
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