Skip to content

Installing packages

Conda has tools for installing packages via three methods:

Conda packages

If you know the name of the package then:

    conda install #your package name#

If you are not sure of the name then use the conda search tool, e.g.

    conda search plot
It should tell you that the package name you were probably after is matplotlib.

Conda-Forge packages

Conda-forge provides a community driven collection of Conda packages. This is the service that Miniforge gets all of its packages from. If Anaconda is lacking a package you require then, this is a good location to check. With Miniforge's conda you can simply use for example:

    conda install nibabel

But with Anaconda and Miniconda you will need to specify that Conda-forge should be used:

    conda install -c conda-forge nibabel

Pypi packages

Pypi packages require the pip command which can be installed with (usually installed by default):

    conda install pip

Before falling back to Pypi.org for packages, check that they aren't available at Conda-forge: You can then install the package using:

    pip install #your package name#

It is quite possible that you will need a C/C++/Fortran compiler to install packages via this method.