Installs a list of packages into a specified conda environment.
This command accepts a list of package specifications (e.g, bitarray=0.8) and installs a set of packages consistent with those specifications and compatible with the underlying environment. If full compatibility cannot be assured, an error is reported and the environment is not changed.
Conda attempts to install the newest versions of the requested packages. To accomplish this, it may update some packages that are already installed, or install additional packages. To prevent existing packages from updating, use the --freeze-installed option. This may force conda to install older versions of the requested packages, and it does not prevent additional dependency packages from being installed.
If you wish to skip dependency checking altogether, use the '--no-deps' option. This may result in an environment with incompatible packages, so this option must be used with great caution.
conda can also be called with a list of explicit conda package filenames (e.g. ./lxml-3.2.0-py27_0.tar.bz2). Using conda in this mode implies the --no-deps option, and should likewise be used with great caution. Explicit filenames and package specifications cannot be mixed in a single command.
usage: conda install [-h] [--revision REVISION] [-n ENVIRONMENT | -p PATH] [-c CHANNEL] [--use-local] [--override-channels] [--repodata-fn REPODATA_FNS] [--strict-channel-priority] [--no-channel-priority] [--no-deps | --only-deps] [--no-pin] [--copy] [-C] [-k] [--offline] [-d] [--json] [-q] [-v] [-y] [--download-only] [--show-channel-urls] [--file FILE] [--force-reinstall] [--freeze-installed | --update-deps | -S | --update-all | --update-specs] [-m] [--clobber] [--dev] [package_spec [package_spec ...]]
Packages to install or update in the conda environment.
Revert to the specified REVISION.
Read package versions from the given file. Repeated file specifications can be passed (e.g. --file=file1 --file=file2).
Use sys.executable -m conda in wrapper scripts instead of CONDA_EXE This is mainly for use during tests where we test new conda source against old Python versions.
Target Environment Specification¶
- -n, --name
Name of environment.
- -p, --prefix
Full path to environment location (i.e. prefix).
- -c, --channel
- Additional channel to search for packages. These are URLs searched in the order
they are given (including file:// for local directories). Then, the defaults or channels from .condarc are searched (unless --override-channels is given). You can use 'defaults' to get the default packages for conda. You can also use any name and the .condarc channel_alias value will be prepended. The default channel_alias is http://conda.anaconda.org/.
Use locally built packages. Identical to '-c local'.
Do not search default or .condarc channels. Requires --channel.
Specify name of repodata on remote server. Conda will try whatever you specify, but will ultimately fall back to repodata.json if your specs are not satisfiable with what you specify here. This is used to employ repodata that is reduced in time scope. You may pass this flagmore than once. Leftmost entries are tried first, and the fallback torepodata.json is added for you automatically.
Solver Mode Modifiers¶
Packages in lower priority channels are not considered if a package with the same name appears in a higher priority channel.
Package version takes precedence over channel priority. Overrides the value given by conda config --show channel_priority.
Do not install, update, remove, or change dependencies. This WILL lead to broken environments and inconsistent behavior. Use at your own risk.
Only install dependencies.
Ignore pinned file.
Ensure that any user-requested package for the current operation is uninstalled and reinstalled, even if that package already exists in the environment.
- --freeze-installed, --no-update-deps
Do not update or change already-installed dependencies.
- -S, --satisfied-skip-solve
Exit early and do not run the solver if the requested specs are satisfied. Also skips aggressive updates as configured by 'aggressive_update_packages'. Similar to the default behavior of 'pip install'.
- --update-all, --all
Update all installed packages in the environment.
Update based on provided specifications.
Package Linking and Install-time Options¶
Install all packages using copies instead of hard- or soft-linking.
- -m, --mkdir
Create the environment directory if necessary.
Allow clobbering of overlapping file paths within packages, and suppress related warnings.
- -C, --use-index-cache
Use cache of channel index files, even if it has expired.
- -k, --insecure
Allow conda to perform "insecure" SSL connections and transfers. Equivalent to setting 'ssl_verify' to 'false'.
Offline mode. Don't connect to the Internet.
Output, Prompt, and Flow Control Options¶
- -d, --dry-run
Only display what would have been done.
Report all output as json. Suitable for using conda programmatically.
- -q, --quiet
Do not display progress bar.
- -v, --verbose
Can be used multiple times. Once for INFO, twice for DEBUG, three times for TRACE.
- -y, --yes
Do not ask for confirmation.
Solve an environment and ensure package caches are populated, but exit prior to unlinking and linking packages into the prefix.
Show channel urls. Overrides the value given by conda config --show show_channel_urls.
conda install -n myenv scipy