mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
43 lines
997 B
Plaintext
43 lines
997 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# conda
|
|
|
|
> Package, dependency and environment management for any programming language.
|
|
> Some subcommands such as `create` have their own usage documentation.
|
|
> 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 deactivate`
|
|
|
|
- Delete an environment (remove all packages):
|
|
|
|
`conda remove {{[-n|--name]}} {{environment_name}} --all`
|
|
|
|
- Install packages into the current environment:
|
|
|
|
`conda install {{python=3.4 numpy}}`
|
|
|
|
- List currently installed packages in current environment:
|
|
|
|
`conda list`
|
|
|
|
- Delete unused packages and caches:
|
|
|
|
`conda clean {{[-a|--all]}}`
|