snippetbashTip
conda — Package, dependency, and environment management for any programming language. Some subcommands such
Viewed 0 times
managementdependencycommandcondaandclienvironmentpackage
Problem
How to use the
conda command: Package, dependency, and environment management for any programming language. Some subcommands such as create have their own usage documentation. See also: mamba. More information: <https://docs.conda.io/projects/conda/en/latest/commands/index.html>.Solution
conda — Package, dependency, and environment management for any programming language. Some subcommands such as create have their own usage documentation. See also: mamba. More information: <https://docs.conda.io/projects/conda/en/latest/commands/index.html>.Create a new environment, installing named packages into it:
conda create {{[-n|--name]}} {{environment_name}} {{python=3.9 matplotlib}}List all environments:
conda info {{[-e|--envs]}}Activate an environment:
conda activate {{environment_name}}Deactivate an environment:
conda deactivateDelete an environment (remove all packages):
conda remove {{[-n|--name]}} {{environment_name}} --allInstall packages into the current environment:
conda install {{python=3.4 numpy}}List currently installed packages in current environment:
conda listDelete unused packages and caches:
conda clean {{[-a|--all]}}Code Snippets
Create a new environment, installing named packages into it
conda create {{[-n|--name]}} {{environment_name}} {{python=3.9 matplotlib}}List all environments
conda info {{[-e|--envs]}}Activate an environment
conda activate {{environment_name}}Deactivate an environment
conda deactivateDelete an environment (remove all packages)
conda remove {{[-n|--name]}} {{environment_name}} --allContext
tldr-pages: common/conda
Revisions (0)
No revisions yet.