Show top level dependencies for a conda managed environment
问题 Just as an example, if I created a new environment. conda install python conda create --name foo_environment conda activate foo_environment conda install python conda install jupyter conda env export > environment.yml Very obviously, in this case, there are only two top-level dependencies that are added in this environment: python and Jupiter. I know that we can export the dependencies according to Sharing an environment conda env export > environment.yml But see how verbose it is. name: foo