tldr/pages/common/conda.md

38 lines
834 B
Markdown
Raw Normal View History

2016-11-29 09:14:38 +00:00
# conda
> Package, dependency and environment management for any programming language.
> Some subcommands such as `conda create` have their own usage documentation.
> More information: <https://github.com/conda/conda>.
2016-11-29 09:14:38 +00:00
- Create a new environment, installing named packages into it:
2021-05-27 22:23:56 +01:00
`conda create --name {{environment_name}} {{python=3.9 matplotlib}}`
2016-11-29 09:14:38 +00:00
- List all environments:
`conda info --envs`
2021-05-27 22:23:56 +01:00
- Load an environment:
2016-11-29 09:14:38 +00:00
2021-05-27 22:23:56 +01:00
`conda {{activate environment_name}}`
2016-11-29 09:14:38 +00:00
2021-05-27 22:23:56 +01:00
- Unload an environment:
2016-11-29 09:14:38 +00:00
2021-05-27 22:23:56 +01:00
`conda {{deactivate}}`
2016-11-29 09:14:38 +00:00
2021-05-27 22:23:56 +01:00
- Delete an environment (remove all packages):
2016-11-29 09:14:38 +00:00
2021-05-27 22:23:56 +01:00
`conda remove --name {{environment_name}} --all`
2016-11-29 09:14:38 +00: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:
`conda clean --all`