2025-03-14 21:59:59 -06:00
|
|
|
# conda
|
|
|
|
|
|
|
|
|
|
> Package, dependency and environment management for any programming language.
|
|
|
|
|
> Some subcommands such as `create` have their own usage documentation.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://docs.conda.io/projects/conda/en/latest/commands/index.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a new environment, installing named packages into it:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conda create {{[-n|--name]}} {{environment_name}} {{python=3.9 matplotlib}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List all environments:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conda info {{[-e|--envs]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Load an environment:
|
|
|
|
|
|
|
|
|
|
`conda activate {{environment_name}}`
|
|
|
|
|
|
|
|
|
|
- Unload an environment:
|
|
|
|
|
|
|
|
|
|
`conda deactivate`
|
|
|
|
|
|
|
|
|
|
- Delete an environment (remove all packages):
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conda remove {{[-n|--name]}} {{environment_name}} --all`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conda clean {{[-a|--all]}}`
|