2016-11-29 09:14:38 +00:00
|
|
|
# conda
|
|
|
|
|
|
|
|
> Package, dependency and environment management for any programming language.
|
2021-09-13 09:21:21 +01:00
|
|
|
> Some subcommands such as `conda create` have their own usage documentation.
|
2019-06-03 01:06:36 +01:00
|
|
|
> 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`
|