mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 09:42:07 +02:00
conda: add page (#1158)
This commit is contained in:
parent
21e92ecc78
commit
fffe42cf5d
1 changed files with 35 additions and 0 deletions
35
pages/common/conda.md
Normal file
35
pages/common/conda.md
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# conda
|
||||||
|
|
||||||
|
> Package, dependency and environment management for any programming language.
|
||||||
|
|
||||||
|
- Create a new environment, installing named packages into it:
|
||||||
|
|
||||||
|
`conda create --name {{environment_name}} {{python=2.7 matplotlib}}`
|
||||||
|
|
||||||
|
- List all environments:
|
||||||
|
|
||||||
|
`conda info --envs`
|
||||||
|
|
||||||
|
- Load or unload an environment:
|
||||||
|
|
||||||
|
`source {{activate|deactivate}} {{environment_name}}`
|
||||||
|
|
||||||
|
- Delete an environment (remove all packages):
|
||||||
|
|
||||||
|
`conda remove --name {{environment_name}} --all`
|
||||||
|
|
||||||
|
- Search conda channels for a package by name:
|
||||||
|
|
||||||
|
`conda search {{package_name}}`
|
||||||
|
|
||||||
|
- 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`
|
Loading…
Add table
Reference in a new issue