2023-07-30 13:48:37 +01:00
|
|
|
# conda install
|
|
|
|
|
|
|
|
> Install packages into an existing conda environment.
|
|
|
|
> More information: <https://docs.conda.io/projects/conda/en/latest/commands/install.html>.
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- Install one or more package into the currently active conda environment:
|
2023-07-30 13:48:37 +01:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`conda install {{package1 package2 ...}}`
|
2023-07-30 13:48:37 +01:00
|
|
|
|
|
|
|
- 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 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}}`
|