Installing conda packages¶
For more information about using the conda package manager in Anaconda Prompt (terminal on Linux or macOS), see the conda documentation.
You can also use the graphical interface Anaconda Navigator to install conda packages with just a few clicks.
Open an Anaconda Prompt (terminal on Linux or macOS) and follow these instructions.
Installing a conda package¶
Enter the command:
conda install package-name
Installing specific versions of conda packages¶
Include the desired version number or its prefix after the package name:
conda install package-name=2.3.4
To specify only a major version, run:
conda install package-name=2
These commands install into the environment that is currently active. To install into a named environment, run:
conda install package-name=2.3.4 -n some-environment
If the package is specific to a Python version, conda uses the version installed in the current or named environment. For details on versions, dependencies and channels, see Conda FAQ and Conda Troubleshooting.
Installing packages on a non-networked (air gapped) computer¶
To directly install a conda package from your local computer, run:
conda install /package-path/package-filename.tar.bz2
Conda installs packages into the
To install a .tar file containing many conda packages, run the following command:
conda install /packages-path/packages-filename.tar
If conda cannot find the file, try using an absolute path name instead of a relative path name.
Installing packages directly from the file does not resolve dependencies. If your installed package does not work, it may have missing dependencies that need to be resolved manually.