Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way in conda to list only explicitly installed packages without the packages that were installed as dependencies?

Tags:

conda

How can I list only explicitly installed packages in conda for particular environment? Is there a way to do it?

like image 756
vasili111 Avatar asked Jul 03 '20 16:07

vasili111


People also ask

How do you list conda installed packages?

in terminal, type : conda list to obtain the packages installed using conda.

Does conda list show pip packages?

In particular conda list will also show pip installed packages and conda install will first try to find a conda package and failing that will use pip to install the package. This branch is scheduled to be merged later this week so that version 2.1 of conda will have better pip-integration with conda.

Does conda install dependencies?

Conda analyzes each package for compatible dependencies, and how to install them without conflict. If there is a conflict, Conda will let you know that the installation cannot be completed. By comparison, Pip installs all package dependencies regardless of whether they conflict with other packages already installed.


1 Answers

The page that @Sjlver's comment links to (https://github.com/conda/conda/issues/4545#issuecomment-616410225) has an answer.

conda env export --from-history

Please note that you need conda >=4.7.12 (released 2019) for --from-history (though you can use a newer conda to export an environment created with an older one).

like image 54
saiwing Avatar answered Nov 16 '22 22:11

saiwing