mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-20 15:01:54 +00:00
Update cheatsheets
This commit is contained in:
42
conda
Normal file
42
conda
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
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 `conda create` have their own usage documentation.
|
||||
> More information: <https://github.com/conda/conda>.
|
||||
|
||||
- Create a new environment, installing named packages into it:
|
||||
|
||||
`conda create --name {{environment_name}} {{python=3.9 matplotlib}}`
|
||||
|
||||
- List all environments:
|
||||
|
||||
`conda info --envs`
|
||||
|
||||
- Load an environment:
|
||||
|
||||
`conda activate {{environment_name}}`
|
||||
|
||||
- Unload an environment:
|
||||
|
||||
`conda deactivate`
|
||||
|
||||
- Delete an environment (remove all packages):
|
||||
|
||||
`conda remove --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 --all`
|
||||
Reference in New Issue
Block a user