From 618a2a0ebb434faf076c8f2e5e001677d84f5a66 Mon Sep 17 00:00:00 2001 From: Daniel Speck Date: Sun, 30 Jul 2023 14:48:37 +0200 Subject: [PATCH] conda install: add page (#10525) Co-authored-by: K.B.Dharun Krishna --- pages/common/conda-install.md | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/conda-install.md diff --git a/pages/common/conda-install.md b/pages/common/conda-install.md new file mode 100644 index 000000000..ee30a037c --- /dev/null +++ b/pages/common/conda-install.md @@ -0,0 +1,36 @@ +# conda install + +> Install packages into an existing conda environment. +> More information: . + +- Install a single package into the currently active conda environment: + +`conda install {{package}}` + +- Install a single package into the currently active conda environment using channel conda-forge: + +`conda install -c conda-forge {{package}}` + +- Install a single package into the currently active conda environment using channel conda-forge and ignoring other channels: + +`conda install -c conda-forge --override-channels {{package}}` + +- Install multiple packages: + +`conda install {{package1 package2 ...}}` + +- Install a specific version of a package: + +`conda install {{package}}={{version}}` + +- Install a package into a specific environment: + +`conda install --name {{environment}} {{package}}` + +- Update a package in the current environment: + +`conda install --upgrade {{package}}` + +- Install a package and agree to the transactions without prompting: + +`conda install --yes {{package}}`